WS-717: Modify schema for State Machine rework
Changes
-
Added call to populate capability state rework tables (previously missing) -
Schema additions for State Machine rework: - Table
capabilities:- New column
start_state,varchar, default ="Start"
- New column
- Table
capability_executions:- New column
start_state,varchar, default ="Start" - New column
queue_state,varchar, default ="NotQueued"
- New column
- Table
capability_states:- For all capabilities, new state
"Queued"
- For all capabilities, new state
- Table
capability_state_transitions:- For all capabilities, new transition
"Start" -(capability-submitted)-> "Queued" - For all capabilities, new transition
"Queued" -(workflow-executing)-> "Executing"
- For all capabilities, new transition
- Table
-
Corresponding Python schema changes -
New enum QueueStatewith states:NotQueued,Queued, andRunning -
Updated queueing system to use new QueueStates -
Updated CapabilityExecutionback-end__json__and front-end model with newqueue_statecolumn
No enabled tests were harmed in the making of this MR (somehow)
Completes WS-725 and WS-730
Edited by Nathan Hertz