Files
deer-flow/backend/packages/harness/deerflow/runtime/runs/execution/supervisor.py
T
2026-06-01 15:31:46 +08:00

20 lines
402 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:
pass
__all__ = [
"RunSupervisor",
]