Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,12 @@ async def list_checkpoint_ids(self, *, workflow_name: str) -> list[CheckpointID]
# the underlying filesystem for the file not to be seen half-written; which write
# survives is undefined.
_destination_queues: dict[Path, _DestinationQueue] = {}
_destination_queues_guard = threading.Lock()
# A completed predecessor invokes callbacks synchronously. If cancellation lands while
# a save is entering the queue, its deferred release can therefore run re-entrantly on
# the same thread before the enqueue frame has left this guard. A plain Lock deadlocks
# that release (and permanently wedges every later save), while an RLock still excludes
# all other threads and lets the owning thread finish the hand-off.
_destination_queues_guard = threading.RLock()


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dev = [
"mypy==2.3.1",
"pyright==1.1.411",
"pyrefly==1.2.0",
"ty==0.0.77",
"ty==0.0.78",
"zuban==0.9.3",
"opentelemetry-sdk",
"pandas>=2,<4",
Expand Down
2 changes: 1 addition & 1 deletion python/samples/02-agents/mcp/mcp_long_running_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def _run_server() -> None:
server: Server[Any, Any] = Server("mcp-long-running-task-demo")
# Auto-registers handlers for tasks/get, tasks/result, tasks/cancel, tasks/list
# backed by an in-memory store.
server.experimental.enable_tasks()
server.experimental.enable_tasks() # ty: ignore[deprecated]

@server.list_tools()
async def _list_tools() -> list[types.Tool]: # pyright: ignore[reportUnusedFunction]
Expand Down
44 changes: 22 additions & 22 deletions python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading