Skip to content

Move run finished status update to the end of the job#352

Merged
cristian-tamblay merged 1 commit into
developfrom
fix/run-finished-status
Oct 24, 2025
Merged

Move run finished status update to the end of the job#352
cristian-tamblay merged 1 commit into
developfrom
fix/run-finished-status

Conversation

@Irozuku
Copy link
Copy Markdown
Collaborator

@Irozuku Irozuku commented Oct 24, 2025

This pull request refactors the order of database operations in the run function within model_job.py to improve error handling and ensure that the model evaluation step occurs before marking the job as finished. The main change is moving the code that sets the job status as finished and commits to the database after the model evaluation step, rather than before.

Error handling and workflow improvements:

  • Moved the call to run.set_status_as_finished() and db.commit() to occur after the model evaluation step, ensuring that the job is only marked as finished if evaluation succeeds. [1] [2]

@cristian-tamblay cristian-tamblay merged commit 4141592 into develop Oct 24, 2025
18 checks passed
@cristian-tamblay cristian-tamblay deleted the fix/run-finished-status branch October 24, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants