Skip to content

Require pydocket 0.26.0 so a cancelled task cannot stop the worker - #5444

Merged
jlowin merged 2 commits into
mainfrom
fix/conformance-tasks-flake
Oct 4, 2026
Merged

jlowin merged 2 commits into
mainfrom
fix/conformance-tasks-flake

Conversation

@jlowin

@jlowin jlowin commented Oct 4, 2026

Copy link
Copy Markdown
Member

The "MCP conformance tests" job fails intermittently on unrelated PRs, always on tasks-wire-fields, tasks-mrtr-input and tasks-dispatch-and-envelope. The cause is in pydocket 0.24.1. When docket.cancel() reaches the worker after it has picked up a task but before the task has been claimed, the cancellation ends the task with a CancelledError. The worker loop awaits that finished task and treats the error as a request to shut down, so run_forever() returns without a log line and the worker never reads another task. The conformance run cancels a 60 second task right after creating it, so on a slow runner it hits this window; every task created afterwards stays in working until the scenario's own timeout. pydocket 0.26.0 fixes this (chrisguidry/docket#503), so this raises the floor in fastmcp_tasks and updates the lock. A regression test cancels a task while its claim is in flight and then checks that a second task still completes; it times out on 0.24.1 and passes on 0.26.0.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T16:13:00.478504Z 5f1f3b3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@marvin-context-protocol marvin-context-protocol Bot added bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. tasks Related to background tasks, Docket, SEP-1686. labels Oct 4, 2026
@jlowin
jlowin merged commit 4900dd5 into main Oct 4, 2026
23 checks passed
@jlowin
jlowin deleted the fix/conformance-tasks-flake branch October 4, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working. Reports of errors, unexpected behavior, or broken functionality. tasks Related to background tasks, Docket, SEP-1686.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant