Skip to content

fix_statuses script does not handle AutoUpdateJob and Job records #182

@Fedir-Yatsenko

Description

@Fedir-Yatsenko

StatGPT Backend version

latest

Short description

The fix_statuses script does not reset stuck AutoUpdateJob and Job records after server restarts or crashes.

What steps will reproduce the bug?

  1. Have an AutoUpdateJob or Job record in QUEUED or IN_PROGRESS status
  2. Restart or crash the server
  3. Run the fix_statuses.py script
  4. Observe that these records remain stuck in their non-final status

What is the expected behavior?

The fix_statuses script should set stuck AutoUpdateJob and Job records to FAILED, the same way it handles stuck ChannelDatasetVersion records.

What do you see instead?

Only ChannelDatasetVersion records are reset to FAILED. The following models are not handled and their records can remain stuck indefinitely:

Model Table Status field Has reason_for_failure
AutoUpdateJob auto_update_jobs status Yes
Job jobs status Yes

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions