MODULE REFERENCE

execution

anomx.execution

Portable execution, work contexts, and run tracking.

Public exports

Import these names directly from anomx.execution.

BaseAlgorithm

Base class for reusable anomaly workflows.

CallbackBackend

Adapt an existing worker transport or application-specific event sink.

JobDefinition

A validated graph of job nodes.

JobDefinitionError

Raised when a job definition is structurally invalid.

JobNode

One processing step in a job graph.

JobRunError

Raised when a job or node cannot be executed.

JobRunResult

Outcome of one synchronous job execution.

JobRunner

Execute job definitions synchronously with a propagated context.

JsonlBackend

Append portable JSON events to a local file (offline by default).

LocalExecutor

Run and inspect local models with a deliberately small execution contract.

LocalResult

One experiment's observations, predictions, metrics, and provenance.

NodeExecution

Outcome of executing one node.

NodeExecutor

Execute job nodes against a shared context.

PipelineAlgorithm

Train, score, and classify a dataset with built-in library components.

PipelineOrchestrator

Train, score, and classify a dataset with built-in library components.

Run

One execution in a project, with a step-indexed history and summary.

RunBackend

Persist events synchronously; raise on failure so callers can retry.

WorkContext

Host-injected logging, findings, metrics, datasets, and compute services.

WorkGraph

A validated, deterministic DAG with explicit predecessor outputs.

WorkStep

One Python or inference step with an explicit runtime selection.

current_run

Return the run bound to this context, or ``None``.

finish

Finish the current standalone execution; a worker owns hosted lifecycles.

frame_to_records

Serialize a DataFrame into JSON-friendly, index-free records.

get_work_context

Return the context activated by the current execution host.

init

Start and bind a standalone run, or reuse the active hosted execution.

log

Write values to the active run (see :meth:`Run.log`).

normalize_context

Build a valid context dict, optionally seeding the input data.

read_context_flag

Read a boolean flag from `flags` with a top-level fallback.

read_context_frame

Read one conventional frame key from the context.

records_to_frame

Rebuild a DataFrame from context records.

run_python_body

Execute user-authored function-body code against the context.

use_run

Temporarily bind an existing run without changing its lifecycle.

write_context_frame

Write a frame into the context in its JSON-encodable form.