mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-10 01:15:58 +00:00
20 lines
402 B
Python
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",
|
|
]
|