feat(runs): a run is pinned to the workflow version it started with and fails clearly when it changed (archie #2014)
This commit is contained in:
8 files changed
+99
-28
No files matched your search
@@ -94,7 +94,7 @@ func Run(ctx context.Context, configPath string) error {
|
||||
allow.Routes(mux, guard)
|
||||
classes.Routes(mux, guard, allow)
|
||||
remembered := memory.NewModule(db, orgID)
|
||||
engine.Register("investigate", runs.Investigate(settings, conns, judge, allow, tell, remembered)) //nolint:contextcheck // see above
|
||||
engine.Register("investigate", 1, runs.Investigate(settings, conns, judge, allow, tell, remembered)) //nolint:contextcheck // see above
|
||||
|
||||
// An answer a channel delivers is an event, and settles its request.
|
||||
hear := events.NewModule(db, log.With("module", "events"), orgID, conns, engine, allow)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
-- +goose Up
|
||||
-- Runs that exist before versions were declared started under version 1.
|
||||
ALTER TABLE runs.runs ADD COLUMN workflow_version integer NOT NULL DEFAULT 1;
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE runs.runs DROP COLUMN workflow_version;
|
||||
Reference in new issue
Block a user