omnipy.engine.run_spec
Engine-facing run-spec adapters for tasks and flows.
Run-spec objects expose a uniform view of Omnipy jobs so execution engines can initialize them, wrap their callables, and execute them without depending on the full job implementation details.
| CLASS | DESCRIPTION |
|---|---|
ChildJobListArgFlowRunSpec |
Base run spec for flows defined by ordered child-job templates. |
DagFlowRunSpec |
Run spec for DAG flows that route named results into downstream inputs. |
FlowRunSpec |
Base run-spec adapter for flow jobs. |
FuncFlowRunSpec |
Run spec for callable-backed flows that execute a single wrapped callable. |
JobRunSpec |
Base adapter exposing engine-facing metadata and callables for a job. |
LinearFlowRunSpec |
Run spec for linear flows that pipe each child result into the next. |
TaskRunSpec |
Run-spec adapter for applied tasks. |
ChildJobListArgFlowRunSpec
Bases: FlowRunSpec, ABC
flowchart BT
omnipy.engine.run_spec.ChildJobListArgFlowRunSpec[ChildJobListArgFlowRunSpec]
omnipy.engine.run_spec.FlowRunSpec[FlowRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.FlowRunSpec --> omnipy.engine.run_spec.ChildJobListArgFlowRunSpec
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.FlowRunSpec
click omnipy.engine.run_spec.ChildJobListArgFlowRunSpec href "" "omnipy.engine.run_spec.ChildJobListArgFlowRunSpec"
click omnipy.engine.run_spec.FlowRunSpec href "" "omnipy.engine.run_spec.FlowRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Base run spec for flows defined by ordered child-job templates.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Wrap the flow callable with its declared callable shape and flow context. |
get_bound_args |
Proxies argument binding to the wrapped flow callable. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
child_job_templates |
Proxies the wrapped flow's ordered child templates.
TYPE:
|
flow_context |
Proxies the wrapped flow's nested execution context.
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
child_job_templates
property
child_job_templates: tuple[ChildJobTemplateLike, ...]
Proxies the wrapped flow's ordered child templates.
flow_context
property
Proxies the wrapped flow's nested execution context.
See IsFlow.flow_context.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Wrap the flow callable with its declared callable shape and flow context.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing flow callable that enters
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
get_bound_args
Proxies argument binding to the wrapped flow callable.
See IsFuncArgJobBase.get_bound_args.
Source code in src/omnipy/engine/run_spec.py
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
DagFlowRunSpec
Bases: ChildJobListArgFlowRunSpec
flowchart BT
omnipy.engine.run_spec.DagFlowRunSpec[DagFlowRunSpec]
omnipy.engine.run_spec.ChildJobListArgFlowRunSpec[ChildJobListArgFlowRunSpec]
omnipy.engine.run_spec.FlowRunSpec[FlowRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.ChildJobListArgFlowRunSpec --> omnipy.engine.run_spec.DagFlowRunSpec
omnipy.engine.run_spec.FlowRunSpec --> omnipy.engine.run_spec.ChildJobListArgFlowRunSpec
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.FlowRunSpec
click omnipy.engine.run_spec.DagFlowRunSpec href "" "omnipy.engine.run_spec.DagFlowRunSpec"
click omnipy.engine.run_spec.ChildJobListArgFlowRunSpec href "" "omnipy.engine.run_spec.ChildJobListArgFlowRunSpec"
click omnipy.engine.run_spec.FlowRunSpec href "" "omnipy.engine.run_spec.FlowRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Run spec for DAG flows that route named results into downstream inputs.
-
Reference
Code reference
omnipy
engine
job_runnerJOB_TYPE_TO_RUN_DEF
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Wrap the flow callable with its declared callable shape and flow context. |
get_bound_args |
Proxies argument binding to the wrapped flow callable. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
child_job_templates |
Proxies the wrapped flow's ordered child templates.
TYPE:
|
flow_context |
Proxies the wrapped flow's nested execution context.
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
child_job_templates
property
child_job_templates: tuple[ChildJobTemplateLike, ...]
Proxies the wrapped flow's ordered child templates.
flow_context
property
Proxies the wrapped flow's nested execution context.
See IsFlow.flow_context.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Wrap the flow callable with its declared callable shape and flow context.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing flow callable that enters
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
get_bound_args
Proxies argument binding to the wrapped flow callable.
See IsFuncArgJobBase.get_bound_args.
Source code in src/omnipy/engine/run_spec.py
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
FlowRunSpec
Bases: JobRunSpec, ABC
flowchart BT
omnipy.engine.run_spec.FlowRunSpec[FlowRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.FlowRunSpec
click omnipy.engine.run_spec.FlowRunSpec href "" "omnipy.engine.run_spec.FlowRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Base run-spec adapter for flow jobs.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Wrap the flow callable with its declared callable shape and flow context. |
get_bound_args |
Proxies argument binding to the wrapped flow callable. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
flow_context |
Proxies the wrapped flow's nested execution context.
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
flow_context
property
Proxies the wrapped flow's nested execution context.
See IsFlow.flow_context.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Wrap the flow callable with its declared callable shape and flow context.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing flow callable that enters
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
get_bound_args
Proxies argument binding to the wrapped flow callable.
See IsFuncArgJobBase.get_bound_args.
Source code in src/omnipy/engine/run_spec.py
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
FuncFlowRunSpec
Bases: FlowRunSpec
flowchart BT
omnipy.engine.run_spec.FuncFlowRunSpec[FuncFlowRunSpec]
omnipy.engine.run_spec.FlowRunSpec[FlowRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.FlowRunSpec --> omnipy.engine.run_spec.FuncFlowRunSpec
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.FlowRunSpec
click omnipy.engine.run_spec.FuncFlowRunSpec href "" "omnipy.engine.run_spec.FuncFlowRunSpec"
click omnipy.engine.run_spec.FlowRunSpec href "" "omnipy.engine.run_spec.FlowRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Run spec for callable-backed flows that execute a single wrapped callable.
-
Reference
Code reference
omnipy
engine
job_runnerJOB_TYPE_TO_RUN_DEF
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Wrap the flow callable with its declared callable shape and flow context. |
get_bound_args |
Proxies argument binding to the wrapped flow callable. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
flow_context |
Proxies the wrapped flow's nested execution context.
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
flow_context
property
Proxies the wrapped flow's nested execution context.
See IsFlow.flow_context.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Wrap the flow callable with its declared callable shape and flow context.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing flow callable that enters
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
get_bound_args
Proxies argument binding to the wrapped flow callable.
See IsFuncArgJobBase.get_bound_args.
Source code in src/omnipy/engine/run_spec.py
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
JobRunSpec
Bases: ABC
flowchart BT
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Base adapter exposing engine-facing metadata and callables for a job.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Build the default callable that engines should initialize and execute. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 | |
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
abstractmethod
Build the default callable that engines should initialize and execute.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing callable for running the wrapped job.
TYPE:
|
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
LinearFlowRunSpec
Bases: ChildJobListArgFlowRunSpec
flowchart BT
omnipy.engine.run_spec.LinearFlowRunSpec[LinearFlowRunSpec]
omnipy.engine.run_spec.ChildJobListArgFlowRunSpec[ChildJobListArgFlowRunSpec]
omnipy.engine.run_spec.FlowRunSpec[FlowRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.ChildJobListArgFlowRunSpec --> omnipy.engine.run_spec.LinearFlowRunSpec
omnipy.engine.run_spec.FlowRunSpec --> omnipy.engine.run_spec.ChildJobListArgFlowRunSpec
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.FlowRunSpec
click omnipy.engine.run_spec.LinearFlowRunSpec href "" "omnipy.engine.run_spec.LinearFlowRunSpec"
click omnipy.engine.run_spec.ChildJobListArgFlowRunSpec href "" "omnipy.engine.run_spec.ChildJobListArgFlowRunSpec"
click omnipy.engine.run_spec.FlowRunSpec href "" "omnipy.engine.run_spec.FlowRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Run spec for linear flows that pipe each child result into the next.
-
Reference
Code reference
omnipy
engine
job_runnerJOB_TYPE_TO_RUN_DEF
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Wrap the flow callable with its declared callable shape and flow context. |
get_bound_args |
Proxies argument binding to the wrapped flow callable. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
child_job_templates |
Proxies the wrapped flow's ordered child templates.
TYPE:
|
flow_context |
Proxies the wrapped flow's nested execution context.
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
child_job_templates
property
child_job_templates: tuple[ChildJobTemplateLike, ...]
Proxies the wrapped flow's ordered child templates.
flow_context
property
Proxies the wrapped flow's nested execution context.
See IsFlow.flow_context.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Wrap the flow callable with its declared callable shape and flow context.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Engine-facing flow callable that enters
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
get_bound_args
Proxies argument binding to the wrapped flow callable.
See IsFuncArgJobBase.get_bound_args.
Source code in src/omnipy/engine/run_spec.py
log
Proxies log messages to the wrapped job.
See CanLog.log.
Source code in src/omnipy/engine/run_spec.py
TaskRunSpec
Bases: JobRunSpec
flowchart BT
omnipy.engine.run_spec.TaskRunSpec[TaskRunSpec]
omnipy.engine.run_spec.JobRunSpec[JobRunSpec]
omnipy.engine.run_spec.JobRunSpec --> omnipy.engine.run_spec.TaskRunSpec
click omnipy.engine.run_spec.TaskRunSpec href "" "omnipy.engine.run_spec.TaskRunSpec"
click omnipy.engine.run_spec.JobRunSpec href "" "omnipy.engine.run_spec.JobRunSpec"
Run-spec adapter for applied tasks.
-
Reference
Code reference
omnipy
engine
job_runnerJOB_TYPE_TO_RUN_DEF
| METHOD | DESCRIPTION |
|---|---|
__init__ |
|
create_default_run_callable |
Return the task callable exactly as supplied to the run spec. |
log |
Proxies log messages to the wrapped job. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
callable_type |
Proxies to the wrapped job's callable-shape classification.
TYPE:
|
in_flow_context |
Proxies whether the wrapped task is running inside a flow.
TYPE:
|
logger |
Proxies to the wrapped job's logger.
TYPE:
|
name |
Proxies to the wrapped job's display name.
TYPE:
|
param_signatures |
Proxies to the wrapped job's callable parameter metadata.
TYPE:
|
return_type |
Proxies to the wrapped job's annotated return type.
TYPE:
|
unique_name |
Proxies to the wrapped job's unique registry name.
TYPE:
|
unique_run_slug |
Proxies to the wrapped job's run-specific slug.
TYPE:
|
Source code in src/omnipy/engine/run_spec.py
callable_type
property
callable_type: CallableType.Literals
Proxies to the wrapped job's callable-shape classification.
in_flow_context
property
Proxies whether the wrapped task is running inside a flow.
param_signatures
property
Proxies to the wrapped job's callable parameter metadata.
return_type
property
Proxies to the wrapped job's annotated return type.
unique_name
property
Proxies to the wrapped job's unique registry name.
unique_run_slug
property
Proxies to the wrapped job's run-specific slug.
__init__
__init__(job: IsFuncArgJob, run_callable: Callable) -> None
create_default_run_callable
Return the task callable exactly as supplied to the run spec.
| RETURNS | DESCRIPTION |
|---|---|
Callable
|
Underlying task callable to hand to the engine.
TYPE:
|
log
Proxies log messages to the wrapped job.
See CanLog.log.