Files
deer-flow/backend/packages/harness/deerflow/runtime/runs/execution/supervisor.py
T
2026-06-01 09:22:32 +08:00

19 lines
393 B
Python

"""Run execution supervision contract."""
from __future__ import annotations
from typing import Protocol
from ..domain import CancelAction, RunId
class RunSupervisor(Protocol):
"""Controls lifecycle operations for already scheduled runs."""
async def cancel(self, run_id: RunId, *, action: CancelAction = CancelAction.interrupt) -> bool: ...
__all__ = [
"RunSupervisor",
]