Skip to content

WS-717: Modify schema for State Machine rework

Nathan Hertz requested to merge WS-717-hook-up-states-to-capabilities into main

Changes

  • Added call to populate capability state rework tables (previously missing)
  • Schema additions for State Machine rework:
    1. Table capabilities:
      • New column start_state, varchar, default = "Start"
    2. Table capability_executions:
      • New column start_state, varchar, default = "Start"
      • New column queue_state, varchar, default = "NotQueued"
    3. Table capability_states:
      • For all capabilities, new state "Queued"
    4. Table capability_state_transitions:
      • For all capabilities, new transition "Start" -(capability-submitted)-> "Queued"
      • For all capabilities, new transition "Queued" -(workflow-executing)-> "Executing"
  • Corresponding Python schema changes
  • New enum QueueState with states: NotQueued, Queued, and Running
  • Updated queueing system to use new QueueStates
  • Updated CapabilityExecution back-end __json__ and front-end model with new queue_state column

No enabled tests were harmed in the making of this MR (somehow)

Completes WS-725 and WS-730

Edited by Nathan Hertz

Merge request reports

Loading