Skip to content

Commit

Permalink
Set Job.completed_at when cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ghickman committed Dec 7, 2023
1 parent eaa1c40 commit eeba616
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jobrunner/create_or_update_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,10 @@ def set_cancelled_flag_for_actions(job_request_id, actions):
# working.
update_where(
Job,
{"cancelled": True},
{
"cancelled": True,
"completed_at": int(time.time()),
},
job_request_id=job_request_id,
action__in=actions,
)

0 comments on commit eeba616

Please sign in to comment.