fix: handle stuck Job and AutoUpdateJob records in fix_statuses script #182#183
Conversation
…#182 Extract generic _set_failed_status method and add support for resetting stuck Job and AutoUpdateJob records alongside ChannelDatasetVersion. Each model is fixed in a separate try-except block and database session to ensure one failure doesn't block the others. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/deploy-review
|
Examples of script logs:NOTE: Tested locally with docker-compose.
|
Examples of script logs:NOTE: Tested in the Review environment.
|
Applicable issues
fix_statusesscript does not handleAutoUpdateJobandJobrecords #182Description of changes
Extract generic
_set_failed_statusmethod and add support for resetting stuckJobandAutoUpdateJobrecords alongsideChannelDatasetVersion. Each model is fixed in a separate try-except block and database session to ensure one failure doesn't block the others.Checklist
Reviewenvironment.By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.