Skip to content

docs: update the XQueue pages for the in-platform queue and add a migration guide - #1546

Open
feanil wants to merge 6 commits into
openedx:mainfrom
feanil:feanil/xqueue-submissions-migration-docs
Open

feanil wants to merge 6 commits into
openedx:mainfrom
feanil:feanil/xqueue-submissions-migration-docs

Conversation

@feanil

@feanil feanil commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

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.enable flag, XQUEUE_INTERFACE, the xqueue_callback view 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 from PREVENT_CONCURRENT_LOGINS with SINGLE_LOGIN_EXEMPT_GROUPS. The example handler is xqueue-watcher's ContainerGrader, since the base Grader raises NotImplementedError.
  • 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 no SINGLE_LOGIN_EXEMPT_GROUPS setting, 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 what submissions/views/xqueue.py sends. student_response is empty for file submissions, the status endpoint body is not JSON, and a put_result that 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 the grader key of <grader_payload> edx-submissions#390 settled on forwarding grader, skip_grader, hide_output and lang, the keys xqueue-watcher's built-in graders read, and dropping the rest. The page documents those four, the example passes only grader, and the migration guide tells operators to audit course content for payloads with other keys before switching courses over. Releases before Willow forward only grader, 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.

feanil and others added 6 commits November 24, 2026 22:27
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
feanil force-pushed the feanil/xqueue-submissions-migration-docs branch from 81788ef to 4212d59 Compare November 25, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant