Summary:
In order to ensure DB consistency, we need to rework the retry mechanism
Remove retry_count field from record
Add retry_ids field to record
Change check_job/check_jobs to return “retry_count” in addition to “retry_ids”
Change retry to return “retry_ids”
Add a toggle field to ensure database is consistent in terms of updating the parent_retry and parent_job_id
Testing Instructions
Deployed on CI
Delete all records with retries in CI db, and prod db.
Description of PR purpose/changes
Summary: In order to ensure DB consistency, we need to rework the retry mechanism
Testing Instructions
Dev Checklist:
Updating Version and Release Notes (if applicable)