mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-10 09:25:57 +00:00
19 lines
393 B
Python
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",
|
|
]
|