omnipy.engine.job_runner
| CLASS | DESCRIPTION |
|---|---|
DagFlowRunnerEngine |
Base class for DAG flow runner engine implementations |
FuncFlowRunnerEngine |
Base class for function flow runner engine implementations |
JobRunnerEngine |
Base class for job runner engine implementations |
LinearFlowRunnerEngine |
Base class for linear flow runner engine implementations |
TaskRunnerEngine |
Base class for task runner engine implementations |
DagFlowRunnerEngine
Bases: JobRunnerEngine
Base class for DAG flow runner engine implementations
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
apply_dag_flow_decorator |
|
default_dag_flow_run_decorator |
|
get_config_cls |
Specification of config class mapped to an Engine subclass. Must be implemented by all |
set_config |
|
set_registry |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
TYPE:
|
registry |
TYPE:
|
Source code in src/omnipy/engine/job_runner.py
__init__
apply_dag_flow_decorator
apply_dag_flow_decorator(dag_flow: IsDagFlow, job_callback_accept_decorator: Callable) -> None
Source code in src/omnipy/engine/job_runner.py
default_dag_flow_run_decorator
staticmethod
default_dag_flow_run_decorator(dag_flow: IsDagFlow) -> Callable
Source code in src/omnipy/engine/job_runner.py
get_config_cls
abstractmethod
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Specification of config class mapped to an Engine subclass. Must be implemented by all subclasses of Engine. If no configuration is needed, then the EngineConfig class should be returned. :return: Class implementing the IsEngineConfig protocol
Source code in src/omnipy/engine/_base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None
FuncFlowRunnerEngine
Bases: JobRunnerEngine
Base class for function flow runner engine implementations
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
apply_func_flow_decorator |
|
get_config_cls |
Specification of config class mapped to an Engine subclass. Must be implemented by all |
set_config |
|
set_registry |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
TYPE:
|
registry |
TYPE:
|
Source code in src/omnipy/engine/job_runner.py
__init__
apply_func_flow_decorator
apply_func_flow_decorator(func_flow: IsFuncFlow, job_callback_accept_decorator: Callable) -> None
Source code in src/omnipy/engine/job_runner.py
get_config_cls
abstractmethod
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Specification of config class mapped to an Engine subclass. Must be implemented by all subclasses of Engine. If no configuration is needed, then the EngineConfig class should be returned. :return: Class implementing the IsEngineConfig protocol
Source code in src/omnipy/engine/_base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None
JobRunnerEngine
Bases: Engine, ABC
Base class for job runner engine implementations
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
get_config_cls |
Specification of config class mapped to an Engine subclass. Must be implemented by all |
set_config |
|
set_registry |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
TYPE:
|
registry |
TYPE:
|
Source code in src/omnipy/engine/job_runner.py
__init__
get_config_cls
abstractmethod
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Specification of config class mapped to an Engine subclass. Must be implemented by all subclasses of Engine. If no configuration is needed, then the EngineConfig class should be returned. :return: Class implementing the IsEngineConfig protocol
Source code in src/omnipy/engine/_base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None
LinearFlowRunnerEngine
Bases: JobRunnerEngine
Base class for linear flow runner engine implementations
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
apply_linear_flow_decorator |
|
default_linear_flow_run_decorator |
|
get_config_cls |
Specification of config class mapped to an Engine subclass. Must be implemented by all |
set_config |
|
set_registry |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
TYPE:
|
registry |
TYPE:
|
Source code in src/omnipy/engine/job_runner.py
__init__
apply_linear_flow_decorator
apply_linear_flow_decorator(
linear_flow: IsLinearFlow, job_callback_accept_decorator: Callable
) -> None
Source code in src/omnipy/engine/job_runner.py
default_linear_flow_run_decorator
staticmethod
default_linear_flow_run_decorator(linear_flow: IsLinearFlow) -> Callable
Source code in src/omnipy/engine/job_runner.py
get_config_cls
abstractmethod
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Specification of config class mapped to an Engine subclass. Must be implemented by all subclasses of Engine. If no configuration is needed, then the EngineConfig class should be returned. :return: Class implementing the IsEngineConfig protocol
Source code in src/omnipy/engine/_base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None
TaskRunnerEngine
Bases: JobRunnerEngine
Base class for task runner engine implementations
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
apply_task_decorator |
|
get_config_cls |
Specification of config class mapped to an Engine subclass. Must be implemented by all |
set_config |
|
set_registry |
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
TYPE:
|
registry |
TYPE:
|
Source code in src/omnipy/engine/job_runner.py
__init__
apply_task_decorator
apply_task_decorator(task: IsTask, job_callback_accept_decorator: Callable) -> None
Source code in src/omnipy/engine/job_runner.py
get_config_cls
abstractmethod
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Specification of config class mapped to an Engine subclass. Must be implemented by all subclasses of Engine. If no configuration is needed, then the EngineConfig class should be returned. :return: Class implementing the IsEngineConfig protocol
Source code in src/omnipy/engine/_base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None