Skip to content

Commit 86f6eb7

Browse files
wvangeitAndrei Neagu
authored andcommitted
Fix job_task_id not found if db doesnt have the field πŸ› πŸš‘οΈ (#8347)
1 parent a13f9c6 commit 86f6eb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

β€Žservices/web/server/src/simcore_service_webserver/functions/_functions_service.pyβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,9 +770,9 @@ def _decode_functionjob(
770770
inputs=functionjob_db.inputs,
771771
outputs=functionjob_db.outputs,
772772
project_job_id=functionjob_db.class_specific_data["project_job_id"],
773-
job_creation_task_id=functionjob_db.class_specific_data[
773+
job_creation_task_id=functionjob_db.class_specific_data.get(
774774
"job_creation_task_id"
775-
],
775+
),
776776
created_at=functionjob_db.created,
777777
)
778778

@@ -785,9 +785,9 @@ def _decode_functionjob(
785785
inputs=functionjob_db.inputs,
786786
outputs=functionjob_db.outputs,
787787
solver_job_id=functionjob_db.class_specific_data["solver_job_id"],
788-
job_creation_task_id=functionjob_db.class_specific_data[
788+
job_creation_task_id=functionjob_db.class_specific_data.get(
789789
"job_creation_task_id"
790-
],
790+
),
791791
created_at=functionjob_db.created,
792792
)
793793

0 commit comments

Comments
Β (0)