Correction in case of job deletion
This commit is contained in:
parent
a443ebe728
commit
37000619f3
|
|
@ -240,6 +240,7 @@ class ProcessUtils:
|
|||
if job is None:
|
||||
return None
|
||||
|
||||
try:
|
||||
sanitize_object = {
|
||||
'status': job.get_status(refresh=True),
|
||||
'result': job.result,
|
||||
|
|
@ -254,6 +255,8 @@ class ProcessUtils:
|
|||
'worker_name': job.worker_name,
|
||||
'meta': job.meta
|
||||
}
|
||||
except :
|
||||
return None
|
||||
|
||||
return sanitize_object
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue