mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
feat(mcp): sweep background-task MCP tasks a request would never repair
The manager recovers rows only when it starts, and a resume queued for an answered task is process-local. The sweeper expires tasks waiting past their TTL, resumes answered tasks whose resume was lost, and settles tasks whose worker died while this instance was running: retried once when the tool opts into recover, failed as lost otherwise. Its claims use the same lease fence as the manager, so instances sweeping together settle each row once. Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
dbcb5528ab
commit
a8db20d3fb
2 changed files with 246 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue