[BE] fix issue when result is done it does not get fetched due to status update happens earlier than result update
This commit is contained in:
parent
a9d4f8e3d7
commit
d36f92a284
|
|
@ -122,11 +122,11 @@ def backend(model, is_debugging: bool):
|
|||
)
|
||||
continue
|
||||
|
||||
database.update_job(result_dict, job_uuid=next_job[UUID])
|
||||
if not is_debugging:
|
||||
database.update_job(
|
||||
{KEY_JOB_STATUS: VALUE_JOB_DONE}, job_uuid=next_job[UUID]
|
||||
)
|
||||
database.update_job(result_dict, job_uuid=next_job[UUID])
|
||||
|
||||
logger.critical("stopped")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue