dootle.control.fsm.machines
The FSM’s for various components of doot
Classes
A Statemachine controlling the tracking of task states |
|
A statemachine of artifact |
|
For running doot as main |
|
Module Contents
- class dootle.control.fsm.machines.TaskMachine( )
Bases:
statemachine.StateMachineA Statemachine controlling the tracking of task states
- Parameters:
- _
- setup
- prepare
- run
- finish
- skip
- halt
- fail
- progress
- run_until_init(
- tracker: doot.control.tracker._interface.WorkflowTracker_p,
- **kwargs,
- Parameters:
tracker (doot.control.tracker._interface.WorkflowTracker_p)
- Return type:
None
- run_until_ready(
- tracker: doot.control.tracker._interface.WorkflowTracker_p,
- **kwargs,
- Parameters:
tracker (doot.control.tracker._interface.WorkflowTracker_p)
- Return type:
None
- class dootle.control.fsm.machines.ArtifactMachine( )
Bases:
statemachine.StateMachineA statemachine of artifact
- Parameters:
- Declared
- Stale
- ToClean
- Removed
- Exists
- Finished
- progress
- class dootle.control.fsm.machines.MainMachine(
- model: Any = None,
- state_field: str = 'state',
- start_value: Any = None,
- rtc: bool = True,
- allow_event_without_transition: bool = False,
- listeners: List[object] | None = None,
Bases:
statemachine.StateMachineFor running doot as main
- Parameters:
- init
- setup
- plugins
- cli
- reporter
- commands
- tasks
- run
- failed
- report
- shutdown
- finished
- progress
- fail
- class dootle.control.fsm.machines.OverlordMachine(
- model: Any = None,
- state_field: str = 'state',
- start_value: Any = None,
- rtc: bool = True,
- allow_event_without_transition: bool = False,
- listeners: List[object] | None = None,
Bases:
statemachine.StateMachine- Parameters:
model (Any) – An optional external object to store state. See domain models.
state_field (str) – The model’s field which stores the current state. Default:
state.start_value (Any) – An optional start state value if there’s no current state assigned on the domain models. Default:
None.rtc (bool) – Controls the processing model. Defaults to
Truethat corresponds to a run-to-completion (RTC) model.allow_event_without_transition (bool) – If
Falsewhen an event does not result in a transition, an exceptionTransitionNotAllowedwill be raised. IfTruethe state machine allows triggering events that may not lead to a state transition, including tolerance to unknown event triggers. Default:False.listeners (List[object] | None) – An optional list of objects that provies attributes to be used as callbacks. See listeners for more details.
- init
- constants
- config_file
- logging
- locations
- ready
- failed
- finished
- progress
- fail