mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 14:58:32 +02:00
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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27499>
This commit is contained in:
parent
5bc1a62fbb
commit
8a05cb8da7
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue