Correction in case of job deletion

This commit is contained in:
Totonyus 2025-08-23 21:00:41 +02:00
parent a443ebe728
commit 37000619f3
1 changed files with 17 additions and 14 deletions

View File

@ -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