fastsim.task
Task execution framework: define multi-action tasks, track their status, and manage them through TaskManager. Each Task contains an ordered sequence of Actions evaluated against Goals.
TaskStatus
6 methodsDataclass capturing the full execution state of a running or completed task.
ActionResultStatus
4 methodsResult of a single action execution within a task.
GoalResultStatus
4 methodsResult of a goal evaluation after an action.
Task
2 methodsExecutable task instance: an ordered sequence of actions evaluated against goals.
Tasks are defined via config or programmatically by subclassing. Call execute() to run the full action sequence; inspect get_status() for progress tracking.
get_statusmethodReturn the current execution status of the task.
executemethodRun the task: execute each action in order, evaluate goals, and update status.
TaskManager
static-only4 methodsStatic task registry: register, select, and run tasks by name.
TaskManager maintains a registry of Task instances keyed by name. Use run_task() to execute a named task, or set_current_task() + run_current_task() for the typical workflow.
run_taskstaticmethodExecute a named task and return its final status.
| Name | Type | Default | Description |
|---|---|---|---|
task_name | str | — | Name of the registered task to run. |
get_current_task_statusstaticmethodReturn the status of the currently selected task.
run_current_taskstaticmethodExecute whichever task is currently selected via set_current_task().