dootle.control.fsm.runner

An workflow runner for doot that uses the FSM backed tasks/tracker

Classes

FSMRunner

Doot Runner which accepts FSM wrapped Tasks/Jobs/Artifacts

Module Contents

class dootle.control.fsm.runner.FSMRunner(
*,
tracker: doot._abstract.TaskTracker_p,
)

Bases: doot.control.runner.DootRunner

Doot Runner which accepts FSM wrapped Tasks/Jobs/Artifacts

Parameters:

tracker (doot._abstract.TaskTracker_p)

run_next_task() None

Get the next task from the tracker, expand/run it, and handle the result/failure

Return type:

None

handle_task_success(
task: FSMRunner.handle_task_success.T,
) None
Parameters:

task (FSMRunner.handle_task_success.T)

Return type:

None

handle_failure(failure: Exception) None
Parameters:

failure (Exception)

Return type:

None

notify_artifact(
art: doot.workflow.TaskArtifact,
) None
Parameters:

art (doot.workflow.TaskArtifact)

Return type:

None