Scheduler¶
- class laminar.configurations.schedulers.Scheduler¶
Bases:
object
Base scheduler
Methods
Compile an intermediate representation of the Flow.
Create a delegated scheduler to schedule the Flow.
Invoke the delegated scheduler to start a Flow execution.
loop
Find all runnable layers.
Schedule runnable layers.
Schedule layers for execution.
Find all skippable layers.
Wait on the completion of running layers.
Attributes
- __init__()¶
- compile(*, execution: Execution) dict[str, Any] ¶
Compile an intermediate representation of the Flow.
- create(*, ir: dict[str, Any]) None ¶
Create a delegated scheduler to schedule the Flow.
- invoke() None ¶
Invoke the delegated scheduler to start a Flow execution.
- runnable(*, dependencies: dict[str, set[str]], pending: set[str], finished: set[str]) tuple[set[str], set[str]] ¶
Find all runnable layers.
- running(*, execution: Execution, runnable: set[str], running: set[Task[list[Layer]]]) set[Task[list[Layer]]] ¶
Schedule runnable layers.
- skippable(*, execution: Execution, runnable: set[str], finished: set[str]) tuple[set[str], set[str]] ¶
Find all skippable layers.