mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-06-10 09:25:57 +00:00
26 lines
477 B
Python
26 lines
477 B
Python
"""Run execution scheduler contract."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Protocol
|
|
|
|
from ..domain import RunId
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class RunExecutionHandle:
|
|
run_id: RunId
|
|
|
|
|
|
class RunExecutionScheduler(Protocol):
|
|
"""Starts background execution for an accepted run."""
|
|
|
|
async def start(self, run_id: RunId) -> RunExecutionHandle: ...
|
|
|
|
|
|
__all__ = [
|
|
"RunExecutionHandle",
|
|
"RunExecutionScheduler",
|
|
]
|