From 8a05cb8da70310d2ba76a48f1a3d892b9aecb41b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Mon, 5 Feb 2024 22:59:51 +0000 Subject: [PATCH] ci_run_n_monitor: track new job when retrying a job When retrying a job, we are creating a new job, so we need to keep track of this new job now. Part-of: --- bin/ci/ci_run_n_monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index 800d3d57e8c..ad9cb8e6a15 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -217,7 +217,8 @@ def enable_job( pjob = project.jobs.get(job.id, lazy=True) if job.status in ["success", "failed", "canceled"]: - pjob.retry() + new_job = pjob.retry() + job = get_pipeline_job(pipeline, new_job["id"]) else: pjob.play()