httk.workflow.runtime¶
Attempt identity and supervised commands.
The attempt context and run_command() are protocol-level facilities every
native runner uses; the environment-binding helper below is what the authoring
SDK and the Bash bridge both recover an attempt through.
Classes¶
The immutable identity and restart evidence for one running attempt. |
|
Result of an argv-only supervised child process. |
Functions¶
|
Run an argv array and terminate its process group on timeout. |
Module Contents¶
- class httk.workflow.runtime.AttemptContext[source]¶
The immutable identity and restart evidence for one running attempt.
- settings: collections.abc.Mapping[str, object][source]¶
- resources: collections.abc.Mapping[str, object][source]¶
- raw: collections.abc.Mapping[str, Any][source]¶
- classmethod read(path: str | os.PathLike[str]) Self[source]¶
Read and validate a manager-written attempt context.
- httk.workflow.runtime.run_command(argv: collections.abc.Sequence[str], *, timeout: float | None = None, cwd: str | os.PathLike[str] | None = None, environment: collections.abc.Mapping[str, str] | None = None, termination_grace: float = 10.0) CommandResult[source]¶
Run an argv array and terminate its process group on timeout.