fastmcp/tests/tasks/server
Jeremiah Lowin 4900dd5c5a
Require pydocket 0.26.0 so a cancelled task cannot stop the worker (#5444)
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.
2026-10-04 12:17:22 -04:00
..
__init__.py Move task subsystem to fastmcp-tasks package, disconnect SEP-1686 wire from core 2026-07-21 21:51:45 -04:00
conftest.py Remove obsolete Docket memory fixtures (#4912) 2026-08-27 11:08:04 -05:00
test_concurrent_dependencies.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_context_background_task.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_custom_subclass_tasks.py Mask raised task errors regardless of ctx param 2026-07-23 07:59:54 -04:00
test_extension.py tasks: run tools called from another tool in the foreground (#5275) 2026-09-25 12:18:35 -05:00
test_guard_reentrant.py Make a contended tasks/update wait instead of dropping its answer 2026-07-26 16:40:33 -04:00
test_progress_dependency.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_reenter_shutdown.py Rebuild guard tasks as end-and-reenter; remove imperative in-task elicit 2026-07-22 12:38:46 -04:00
test_server_tasks_parameter.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_snapshot_encryption.py Encrypt task context snapshots at rest (#4772) 2026-08-06 20:01:40 -04:00
test_snapshot_restore.py Clear stale auth in reused workers; bound elicitation; version explicit tasks 2026-07-23 18:25:48 -04:00
test_sync_function_task_disabled.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_capabilities.py Implement SEP-2663 tasks extension: TasksExtension, poll-based task lifecycle 2026-07-21 23:00:38 -04:00
test_task_catalog_transforms.py tasks: run tools called from another tool in the foreground (#5275) 2026-09-25 12:18:35 -05:00
test_task_config.py Pass the MCP conformance suite's draft and pending scenarios 2026-07-26 15:00:08 -04:00
test_task_dependencies.py Cover CallArgument resolution in background tasks (#4833) 2026-08-14 13:14:36 -04:00
test_task_keys.py Move task subsystem to fastmcp-tasks package, disconnect SEP-1686 wire from core 2026-07-21 21:51:45 -04:00
test_task_methods.py Require pydocket 0.26.0 so a cancelled task cannot stop the worker (#5444) 2026-10-04 12:17:22 -04:00
test_task_middleware.py Resolve injected tools through the server's tool lookup (#5431) 2026-10-04 10:39:47 -04:00
test_task_mount.py Remove obsolete Docket memory fixtures (#4912) 2026-08-27 11:08:04 -05:00
test_task_protocol.py Close SEP-2663 compliance gaps: -32003 on task methods, raised-error semantics, update race 2026-07-22 16:59:13 -04:00
test_task_proxy.py Remove obsolete Docket memory fixtures (#4912) 2026-08-27 11:08:04 -05:00
test_task_return_types.py Remove obsolete Docket memory fixtures (#4912) 2026-08-27 11:08:04 -05:00
test_task_security.py Fix ty diagnostics in task tests, scope ty exclusion to client-task files 2026-07-21 23:10:00 -04:00
test_task_tools.py Preserve field-level strict validation in lax mode (#5141) 2026-09-17 10:18:56 -07:00
test_task_ttl.py Encrypt task context snapshots at rest (#4772) 2026-08-06 20:01:40 -04:00
test_wire_models.py fix task timing field serialization (#5003) 2026-09-04 19:08:13 -05:00
test_wire_production.py Rebuild guard tasks as end-and-reenter; remove imperative in-task elicit 2026-07-22 12:38:46 -04:00