This pull request continues building out the retry feature introduced in #182, modifying the ImportRockTheVoteReport job to better handle when its report status is failed:
If the report hasn't been retried, create a retry report and dispatch the new retry report ID for import, discarding the current job for the failed report.
If the report has been retried, discard the current job for the failed report. The only time we'd possibly run into this is when an admin manually creates a retry via UI before the hourly import runs to create the retry.
What's this PR do?
This pull request continues building out the retry feature introduced in #182, modifying the
ImportRockTheVoteReport
job to better handle when its report status isfailed
:If the report hasn't been retried, create a retry report and dispatch the new retry report ID for import, discarding the current job for the failed report.
If the report has been retried, discard the current job for the failed report. The only time we'd possibly run into this is when an admin manually creates a retry via UI before the hourly import runs to create the retry.
How should this be reviewed?
:eyes:
Any background context you want to provide?
🦎
Relevant tickets
References Pivotal #173611355.
Checklist