MODULE REFERENCE
execution
anomx.executionPortable execution, work contexts, and run tracking.
Public exports
Import these names directly from anomx.execution.
BaseAlgorithmBase class for reusable anomaly workflows.
CallbackBackendAdapt an existing worker transport or application-specific event sink.
JobDefinitionA validated graph of job nodes.
JobDefinitionErrorRaised when a job definition is structurally invalid.
JobNodeOne processing step in a job graph.
JobRunErrorRaised when a job or node cannot be executed.
JobRunResultOutcome of one synchronous job execution.
JobRunnerExecute job definitions synchronously with a propagated context.
JsonlBackendAppend portable JSON events to a local file (offline by default).
LocalExecutorRun and inspect local models with a deliberately small execution contract.
LocalResultOne experiment's observations, predictions, metrics, and provenance.
NodeExecutionOutcome of executing one node.
NodeExecutorExecute job nodes against a shared context.
PipelineAlgorithmTrain, score, and classify a dataset with built-in library components.
PipelineOrchestratorTrain, score, and classify a dataset with built-in library components.
RunOne execution in a project, with a step-indexed history and summary.
RunBackendPersist events synchronously; raise on failure so callers can retry.
WorkContextHost-injected logging, findings, metrics, datasets, and compute services.
WorkGraphA validated, deterministic DAG with explicit predecessor outputs.
WorkStepOne Python or inference step with an explicit runtime selection.
current_runReturn the run bound to this context, or ``None``.
finishFinish the current standalone execution; a worker owns hosted lifecycles.
frame_to_recordsSerialize a DataFrame into JSON-friendly, index-free records.
get_work_contextReturn the context activated by the current execution host.
initStart and bind a standalone run, or reuse the active hosted execution.
logWrite values to the active run (see :meth:`Run.log`).
normalize_contextBuild a valid context dict, optionally seeding the input data.
read_context_flagRead a boolean flag from `flags` with a top-level fallback.
read_context_frameRead one conventional frame key from the context.
records_to_frameRebuild a DataFrame from context records.
run_python_bodyExecute user-authored function-body code against the context.
use_runTemporarily bind an existing run without changing its lifecycle.
write_context_frameWrite a frame into the context in its JSON-encodable form.