Other¶
reflow.signals.TaskInterrupted¶
reflow.signals.TaskInterrupted(signal_number)
¶
Bases: Exception
Raised when a worker receives a termination signal.
Attributes:
| Name | Type | Description |
|---|---|---|
signal_number |
int
|
The signal that triggered the interruption. |
signal_name |
str
|
Human-readable signal name. |
Source code in src/reflow/signals.py
reflow.signals.graceful_shutdown¶
reflow.signals.graceful_shutdown()
¶
Context manager that converts SIGTERM/SIGINT to TaskInterrupted.
Restores the original signal handlers on exit.
Examples:
Source code in src/reflow/signals.py
reflow.config.Config¶
reflow.config.Config(data=None)
¶
Loaded user configuration.
Environment variables (REFLOW_*) override the config file.
Scheduler-agnostic keys (partition / queue, account)
are passed through to the active executor, which normalises them
to the backend's native vocabulary via
:meth:~reflow.executors.Executor._normalize_options.
Source code in src/reflow/config.py
executor_submit_options
property
¶
Default submit options for task jobs.
Uses scheduler-agnostic canonical keys (partition,
account, etc.) which the active executor normalises
to its native vocabulary at submission time.
dispatch_submit_options
property
¶
Default submit options for the dispatch/coordinator job.
reflow.manifest.ManifestCodec¶
reflow.manifest.ManifestCodec(marker_key=_MARKER, schema_version=SCHEMA_VERSION)
dataclass
¶
Builtin-only JSON codec for manifest values.
The codec converts selected Python types to JSON-safe tagged structures and can reconstruct them on load.
dump_value(value)
¶
Convert a Python value into a JSON-safe representation.
Source code in src/reflow/manifest.py
load_value(value)
¶
Reconstruct a Python value from a JSON-safe representation.
Source code in src/reflow/manifest.py
dumps(value, *, pretty=False)
¶
Serialise a Python value to JSON using manifest typing.
Source code in src/reflow/manifest.py
reflow._types.TaskState¶
reflow._types.TaskState
¶
reflow._types.RunState¶
reflow._types.RunState
¶
Bases: str, Enum
Top-level state of a workflow run.