omnipy.shared.protocols.engine.base
Base protocols for Omnipy engine implementations.
| CLASS | DESCRIPTION |
|---|---|
IsEngine |
Protocol for execution engines configured with registry state. |
IsEngine
Bases: Protocol
flowchart BT
omnipy.shared.protocols.engine.base.IsEngine[IsEngine]
click omnipy.shared.protocols.engine.base.IsEngine href "" "omnipy.shared.protocols.engine.base.IsEngine"
Protocol for execution engines configured with registry state.
-
Reference
Code reference
omnipy
- compute
-
hub
runtimeRuntimeObjects -
shared
protocols
-
compute
-
job-
IsAnyFlowengine -
IsAnyFlowTemplateengine -
IsChildJobListArgJobengine -
IsChildJobListArgJobTemplateengine -
IsDagFlowengine -
IsDagFlowTemplateengine -
IsFuncArgJobengine -
IsFuncArgJobTemplateengine -
IsFuncFlowengine -
IsFuncFlowTemplateengine -
IsJobengine -
IsJobBaseengine -
IsJobBaseCallableengine -
IsJobTemplateengine -
IsLinearFlowengine -
IsLinearFlowTemplateengine -
IsTaskengine -
IsTaskTemplateengine
-
-
job_creator
-
-
hub
runtimeIsRuntimeObjects
-
compute
-
Reference
Code reference
omnipy
shared
protocols
engine
job_runnerIsJobRunnerEngine
-
Reference
Code reference
omnipy
shared
protocols
compute
job_creator
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
get_config_cls |
Return the config class associated with this engine type. |
set_config |
Replace the active config and refresh config-dependent state. |
set_registry |
Attach or clear the run-state registry used for job state reporting. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
config |
Return the currently active engine configuration.
TYPE:
|
registry |
Return the registry currently used for run-state reporting.
TYPE:
|
Source code in src/omnipy/shared/protocols/engine/base.py
config
property
config: IsJobRunnerConfig
Return the currently active engine configuration.
| RETURNS | DESCRIPTION |
|---|---|
IsJobRunnerConfig
|
Active configuration object controlling engine behavior.
TYPE:
|
registry
property
registry: IsRunStateRegistry | None
Return the registry currently used for run-state reporting.
| RETURNS | DESCRIPTION |
|---|---|
IsRunStateRegistry | None
|
IsRunStateRegistry | None: Registry receiving job-state updates, or |
__init__
get_config_cls
classmethod
get_config_cls() -> Type[IsJobRunnerConfig]
Return the config class associated with this engine type.
| PARAMETER | DESCRIPTION |
|---|---|
cls
|
Engine subclass whose configuration class is being requested.
|
| RETURNS | DESCRIPTION |
|---|---|
Type[IsJobRunnerConfig]
|
Type[IsJobRunnerConfig]: Configuration class used to instantiate engine settings. |
Source code in src/omnipy/shared/protocols/engine/base.py
set_config
set_config(config: IsJobRunnerConfig) -> None
Replace the active config and refresh config-dependent state.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Runtime configuration object for the engine.
TYPE:
|
Source code in src/omnipy/shared/protocols/engine/base.py
set_registry
set_registry(registry: IsRunStateRegistry | None) -> None
Attach or clear the run-state registry used for job state reporting.
| PARAMETER | DESCRIPTION |
|---|---|
registry
|
Registry implementation, or
TYPE:
|