mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-09-17 01:56:18 +00:00
* feat(mcp): add durable task runtime foundation * fix(chart): sync embedded config version * fix(mcp): isolate task polls during shutdown * feat(mcp): track consecutive poll errors on mcp_tasks poll_attempt_count grows on every claim (successful polls included), so it cannot drive a failure backoff without misjudging normal long tasks. Add consecutive_poll_error_count: incremented when a claim is released after a poll error, reset to zero by any applied snapshot. The backoff/terminal policy that consumes it lands with the first concrete driver. * fix(mcp): harden durable task lifecycle * fix(mcp): preserve tracked task on dedup conflict --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
25 lines
560 B
Python
25 lines
560 B
Python
from deerflow.mcp.tasks.driver import McpTaskDriver, McpTaskDriverRegistry
|
|
from deerflow.mcp.tasks.models import (
|
|
ATTENTION_TASK_STATUSES,
|
|
POLLABLE_TASK_STATUSES,
|
|
TERMINAL_TASK_STATUSES,
|
|
TaskReference,
|
|
TaskSnapshot,
|
|
TaskStatus,
|
|
TaskSubmission,
|
|
TaskSubmitRequest,
|
|
)
|
|
|
|
__all__ = [
|
|
"ATTENTION_TASK_STATUSES",
|
|
"McpTaskDriver",
|
|
"McpTaskDriverRegistry",
|
|
"POLLABLE_TASK_STATUSES",
|
|
"TERMINAL_TASK_STATUSES",
|
|
"TaskReference",
|
|
"TaskSnapshot",
|
|
"TaskStatus",
|
|
"TaskSubmission",
|
|
"TaskSubmitRequest",
|
|
]
|