marge/pipeline_message: print job status for jobs still running or waiting for manual action
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39815>
This commit is contained in:
parent
fb1cb00a96
commit
c4afecfb28
1 changed files with 6 additions and 0 deletions
|
|
@ -277,6 +277,12 @@ async def process_single_job(session, project_id, job):
|
|||
job_name = job.get("name", "Unnamed Job")
|
||||
message = f"[{job_name}]({job_url})"
|
||||
|
||||
if job["status"] == "running":
|
||||
return f"{message}: still running<br>"
|
||||
|
||||
if job["status"] == "manual":
|
||||
return f"{message}: waiting for manual action<br>"
|
||||
|
||||
# if a job times out it's cancelled, so worth mentioning here
|
||||
if job["status"] == "canceled":
|
||||
return f"{message}: canceled<br>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue