Repository navigation
Conversation
feanil
force-pushed
the
feanil/xqueue-submissions-migration-docs
branch
3 times, most recently
from
November 19, 2026 19:40
626497b to
d35737c
Compare
feanil
marked this pull request as ready for review
November 19, 2026 19:50
The page described a waffle flag that does not exist (`enable_xqueue_event_bus`), told operators to run an event bus, and showed problem XML that capa does not accept. The grader polls the LMS through the API that edx-submissions serves at `/xqueue/`, and the result reaches the problem through an in-process openedx-events signal (`lms/djangoapps/grades/signals/handlers.py`). Rewrite the page around what master does: the grader account and its `xqueue` group, the `SINGLE_LOGIN_EXEMPT_GROUPS` exemption the watcher needs, file storage for `<filesubmission>`, pointing xqueue-watcher at the LMS with `ContainerGrader` (the base `Grader` raises NotImplementedError), and what to check when it does not work. openedx/openedx-platform#39405 removed the `send_to_submission_course.enable` flag and `XQUEUE_INTERFACE`, so the page has no flag step. Verawood setup lives in the migration guide, since `SINGLE_LOGIN_EXEMPT_GROUPS` only exists on master and Teak and Ulmo do not serve the `/xqueue/` API. The URL and the `Enable XQueue` label are unchanged. The maintenance chart row is cleared because it reviewed the old page. Related: openedx/public-engineering#286 openedx/openedx-platform#39405 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The XQueue repo is archived and the DEPR asks for operator migration instructions. The guide works on Verawood and Willow and covers the pilot-course rollout through the course override, running a second watcher against the LMS while the old one drains XQueue, the switch for every course, decommissioning the service and the tutor-xqueue plugin, the behaviour differences a custom grader can hit, rollback, and migrating during a Willow upgrade, when the LMS has no callback URL for the XQueue service's results. Release differences it handles: - Teak and Ulmo have the waffle flag but no `/xqueue/` API and no score handler, so the guide starts at Verawood. - Verawood cannot exempt the grader account from PREVENT_CONCURRENT_LOGINS, so each watcher connection gets its own account. - Turning the flag off on Verawood sends submissions back to XQueue, so it stays on until the Willow upgrade. - Verawood reads XQUEUE_INTERFACE for every problem: remove the override rather than blanking it. - Willow forwards the `grader`, `skip_grader`, `hide_output` and `lang` keys of `<grader_payload>` and Verawood only `grader`, so operators audit course content for other keys first (openedx/edx-submissions#390). Related: openedx/public-engineering#286 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add the endpoint table and the submission lifecycle, and describe the JSON that edx-submissions sends and accepts (`submissions/views/xqueue.py`): - the header holds `submission_id` and `submission_key`; - `grader_payload` carries `grader`, `skip_grader`, `hide_output` and `lang` (Verawood only `grader`), and `student_info` has no `random_seed`; - `student_response` is empty for file submissions, which come as URLs; - `score` is the fraction of points, and only `longform` parts of `msg` sit behind See full output; - `status` returns a non-JSON body, `put_result` returns 0 even when the score was not recorded, 403 covers login and CSRF failures, and over HTTPS the CSRF check also needs a matching Referer; - rejected replies stay pulled, retry comes from score errors, and the failed reset keeps the failure count. Drop the `queuelen` requirement, since there is no `get_queuelen` endpoint and xqueue-watcher does not call one. The maintenance chart row is cleared because it reviewed the old page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The script talks to the LMS over HTTP; it has nothing to do with the event bus. Replace the real username and password in the example with placeholders and say which values each one stands for. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The concept page walked through the XQueue service as a hop between the
LMS and the grader and linked to its `urls.py`. The LMS now queues
submissions itself, and the repo is archived, so drop the hop and the
link and point at the reference page instead.
The authoring example passed free-form `<grader_payload>` keys
("output", "max_length") that do not reach the grader. Willow forwards
the "grader" key plus the three options xqueue-watcher's built-in
graders read, "skip_grader", "hide_output" and "lang", and releases
before Willow only "grader". Document those, and tell authors to use a
grader file per problem for per-problem configuration. The decision was
made on openedx/edx-submissions#390.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
openedx/openedx-platform#39405 removes the matlab_api_key field along with the MATLAB integration (openedx/public-engineering#192), so the advanced problem editor no longer has that setting. Co-Authored-By: Claude Opus 5.5 <[email protected]>
feanil
force-pushed
the
feanil/xqueue-submissions-migration-docs
branch
from
November 25, 2026 03:28
81788ef to
4212d59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The XQueue service is deprecated (openedx/public-engineering#286) and the repo is archived. The LMS now queues external grader submissions through edx-submissions and serves the API xqueue-watcher polls. The docs still describe the old service, and the site operator how-to describes a setup that does not match the code.
Willow
openedx/openedx-platform#39405 removed the
send_to_submission_course.enableflag,XQUEUE_INTERFACE, thexqueue_callbackview and the MATLAB integration, so the pages describe master. Setup on older releases lives in the migration guide, which works on Verawood and Willow. Teak and Ulmo have the waffle flag but not the/xqueue/API or the score handler, so the guide tells operators on those releases to upgrade to Verawood first or migrate during the Willow upgrade.What this changes
site_ops/how-tos/enable_xqueue: rewritten around what the code does on master. The page named a waffle flag that does not exist (enable_xqueue_event_bus), told operators to run an event bus, and showed problem XML capa does not accept. The grader talks to/xqueue/on the LMS, the score reaches the problem through an in-process signal (lms/djangoapps/grades/signals/handlers.py), and the grader account is exempted fromPREVENT_CONCURRENT_LOGINSwithSINGLE_LOGIN_EXEMPT_GROUPS. The example handler is xqueue-watcher'sContainerGrader, since the baseGraderraisesNotImplementedError.site_ops/how-tos/migrate_from_xqueue: new. Pilot course via the course override, second watcher against the LMS while the old one drains XQueue, switch everyone, decommission the service and the tutor plugin, behaviour differences for custom graders, rollback, and a section for operators who migrate during a Willow upgrade. Verawood has noSINGLE_LOGIN_EXEMPT_GROUPSsetting, so on Verawood the guide gives each watcher connection its own account, and it keeps the flag on until the Willow upgrade since turning it off sends submissions back to XQueue.site_ops/references/xqueue_external_grader: endpoint table, submission lifecycle, and the JSON corrected to whatsubmissions/views/xqueue.pysends.student_responseis empty for file submissions, thestatusendpoint body is not JSON, and aput_resultthat returns 0 has not necessarily recorded the score.site_ops/references/xqueue_custom_watcher: drop the event bus wording and replace a real person's username and password with placeholders.educators/concepts/.../about_external_graders: the workflow without the XQueue service as a hop; drop the link to the archived repo.educators/how-tos/.../add_external_grader: the example<grader_payload>carried free-form keys that the LMS does not forward. In-platform queue forwards only thegraderkey of<grader_payload>edx-submissions#390 settled on forwardinggrader,skip_grader,hide_outputandlang, the keys xqueue-watcher's built-in graders read, and dropping the rest. The page documents those four, the example passes onlygrader, and the migration guide tells operators to audit course content for payloads with other keys before switching courses over. Releases before Willow forward onlygrader, and the pages say so.educators/references/course_development/advanced_problem_editor: drop the MATLAB API Key setting, which went away with the MATLAB integration in feat!: remove the XQueue service settings, callback and the MATLAB API key openedx-platform#39405.The maintenance chart rows on the rewritten enable and reference pages are cleared, since they reviewed the old content.
Verified against openedx-platform master after openedx/openedx-platform#39405 merged, the Teak, Ulmo and Verawood release branches, xblocks-core 4.0.0, the edx-submissions versions each of those pins and xqueue-watcher master, on 2026-11-24.