diff --git a/scripts/pipeline_suite.py b/scripts/pipeline_suite.py index e01bbbea..33b4d561 100644 --- a/scripts/pipeline_suite.py +++ b/scripts/pipeline_suite.py @@ -822,6 +822,14 @@ class Suite: self.published(ident, 2) before = self.snapshot(ident) self.stack.launch(self.args.relay) + poll( + lambda: ( + {j["pipeline_version"]: j["status"] for j in self.stack.sql("jobs", id=ident)} + == {1: "superseded", 2: "done"} + ), + self.args.recovery_timeout, + "old version superseded", + ) poll(lambda: all(r["published"] for r in self.stack.sql("outbox", id=ident)), 30, "outbox") self.drained() final = self.snapshot(ident)