You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #4933 protects cancellation compensation for durable MCP submissions.
When the caller is cancelled during local persistence, DeerFlow starts remote
compensation and currently waits for a fixed five-second deadline before
propagating the original cancellation. If the deadline expires, compensation
continues as a tracked background task.
The five-second value is currently hard-coded in app/mcp_tasks/service.py.
Different deployments may have different requirements:
high-latency remote MCP services may benefit from a longer synchronous wait;
shutdown-sensitive deployments may prefer a shorter wait;
the current five-second behavior should remain the default.
Proposed scope
Add one restart-required setting under mcp_tasks, for example:
mcp_tasks:
untracked_compensation_wait_seconds: 5
The setting would:
default to 5 seconds, preserving current behavior;
control only how long the caller waits for compensation;
never cancel or abandon the compensation task when the deadline expires;
a custom zero/short wait returning while compensation continues;
repeated caller cancellation not extending the configured deadline.
Would this narrowly scoped configuration capability be useful, or would you
prefer to keep the five-second policy internal?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
PR #4933 protects cancellation compensation for durable MCP submissions.
When the caller is cancelled during local persistence, DeerFlow starts remote
compensation and currently waits for a fixed five-second deadline before
propagating the original cancellation. If the deadline expires, compensation
continues as a tracked background task.
The five-second value is currently hard-coded in
app/mcp_tasks/service.py.Different deployments may have different requirements:
Proposed scope
Add one restart-required setting under
mcp_tasks, for example:The setting would:
Non-goals
Validation
I would add deterministic coverage for:
Would this narrowly scoped configuration capability be useful, or would you
prefer to keep the five-second policy internal?
All reactions