Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes unnecessary exponential backoff as it's max wait was 5 minutes as written until it kicked off a waiter that polled every minute. The logic has been simplified to run, if it's not complete within 5 seconds then queue it for the waiter job to pick it up again in 30 seconds, and if the waiter job finds it's still incomplete it will queue it for another minute. It checks for errors before queueing it in any situation.
Also, this adds location (where the job was originally run) to the queue message so that when it's picked up it will look for the job in that location and none others. There was an issue where in some instances this was choosing the wrong region or polling both regions for the job_id which returned an error for one of them and threw off the logic.