server.web.services.task_fsm
Centralized Task finite state machine.
Classes
Centralized finite state machine for Task status transitions. |
Module Contents
- class server.web.services.task_fsm.TaskFSM
Centralized finite state machine for Task status transitions.
Extracts and centralizes the FSM logic currently embedded in Task model. Includes direct transitions that skip ERROR_RECOVERABLE intermediate state.
- classmethod is_valid_transition(from_status: str, to_status: str) bool
Check if a transition is valid per FSM rules.