Project

General

Profile

Actions

Idea #2352

closed

Pipeline instance state is represented with a state machine instead of "active" and "success" flags

Added by Tom Clegg about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
-
Start date:
04/22/2014
Due date:
Story points:
3.0

Description

Acceptance criteria:
  • User can interrupt/continue pipelines
  • User can run pipeline from command line and doesn't conflict with crunch-dispatch
Ultimately we want to remove the active and success booleans. The only tricky bit is keeping things working during transition. This might work:
  1. add the state attribute (string) -- update all existing records to suitable state during the migration
  2. override active and success methods to return appropriate values based on current state
  3. remove the active and success booleans from the database
  4. override update_attributes so if someone tries to update "active" or "success", the new "state" gets changed instead
  5. fix clients so they read/update state instead of reading/updating active and success
  6. some weeks later: remove the active and success methods and remove from the api response

Subtasks 7 (0 open7 closed)

Task #2472: Replace active/success flags with state attribute to PipelineInstance model in api serverResolvedRadhika Chippada05/09/2014Actions
Task #2473: Update crunch-dispatchResolvedRadhika Chippada05/09/2014Actions
Task #2478: Update workbenchResolvedRadhika Chippada05/09/2014Actions
Task #2477: Update arv-run-pipeline-instanceResolvedRadhika Chippada05/02/2014Actions
Task #2677: Review 2352-phased-pipeline-instance-stateResolvedTom Clegg04/22/2014Actions
Task #2725: 2352-use-state branch is ready for reviewResolvedRadhika Chippada04/22/2014Actions
Task #2805: review 2352-remove-attrs branchResolvedTom Clegg04/22/2014Actions
Actions

Also available in: Atom PDF