feat(workflow): resume a parked run from a chosen step
Each finished stage records the run's step results; a retry may name a resume point, and the next attempt skips the steps before it with their results loaded. A run with a repository resumes only on its pushed branch. The canvas offers Resume/Re-run from here on parked runs.
This commit is contained in:
37 files changed
+606
-88
No files matched your search
@@ -0,0 +1,21 @@
|
||||
-- step_executions.results is the run's step results (summary and structured
|
||||
-- result, by step id) after a stage the run moved past. A resumed attempt
|
||||
-- starts from the results of the stage before its resume point, so steps it
|
||||
-- skips still answer {{ steps.<id>.* }}. NULL means the run did not move past
|
||||
-- the stage.
|
||||
--
|
||||
-- tasks.resume_from names the stage the next attempt starts at, and
|
||||
-- tasks.resume_results the results it starts with. A retry writes both; an
|
||||
-- empty resume_from runs the workflow from its first stage.
|
||||
|
||||
-- +goose Up
|
||||
|
||||
ALTER TABLE step_executions ADD COLUMN results jsonb;
|
||||
ALTER TABLE tasks ADD COLUMN resume_from text NOT NULL DEFAULT '';
|
||||
ALTER TABLE tasks ADD COLUMN resume_results jsonb NOT NULL DEFAULT '{}';
|
||||
|
||||
-- +goose Down
|
||||
|
||||
ALTER TABLE tasks DROP COLUMN resume_results;
|
||||
ALTER TABLE tasks DROP COLUMN resume_from;
|
||||
ALTER TABLE step_executions DROP COLUMN results;
|
||||
Reference in new issue
Block a user