mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merged in hotfix/job_killer_log_fix (pull request #341)
fixed logging of job killer action Approved-by: Milan Kolar <milan@orbi.tools>
This commit is contained in:
commit
9d994dd7fc
1 changed files with 3 additions and 2 deletions
|
|
@ -101,13 +101,14 @@ class JobKiller(BaseAction):
|
||||||
# Update all the queried jobs, setting the status to failed.
|
# Update all the queried jobs, setting the status to failed.
|
||||||
for job in jobs:
|
for job in jobs:
|
||||||
try:
|
try:
|
||||||
|
origin_status = job["status"]
|
||||||
job['status'] = 'failed'
|
job['status'] = 'failed'
|
||||||
session.commit()
|
session.commit()
|
||||||
self.log.debug((
|
self.log.debug((
|
||||||
'Changing Job ({}) status: {} -> failed'
|
'Changing Job ({}) status: {} -> failed'
|
||||||
).format(job['id'], job['status']))
|
).format(job['id'], origin_status))
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.warning.debug((
|
self.log.warning((
|
||||||
'Changing Job ({}) has failed'
|
'Changing Job ({}) has failed'
|
||||||
).format(job['id']))
|
).format(job['id']))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue