Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry failed tasks with new deploys #2269

Merged
merged 5 commits into from
Feb 23, 2022
Merged

Conversation

WH77
Copy link
Contributor

@WH77 WH77 commented Feb 22, 2022

This PR should fix failed tasks not being retried due to newer deploys while the tasks were running.

The branch that skips the newer deploy short circuit should generally get to the current retry logic, but all the other checks / cooldowns still apply.

The log level changes are in case I was mistaken and that the real cause of these tasks not getting retried was obsolete requests all along.

cc - @ssalinas , @pschoenfelder

@ssalinas
Copy link
Member

Could we wire through a unit test for this one? Curious if the pending task will 1) come all the way through and 2) have the old or the new deploy attached to it and 3) if the old/inactive deploy, will it actually launch the task correctly?

scheduler.drainPendingQueue();
resourceOffers();

// TODO - new deploys have new deploy statistics, so we lose track of the # of retries
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tasks could exceed numRetries if they deploy often enough, but cooldowns should keep the retries from becoming a problem.

Debated adding a new retryIgnoreDeploy field to requests or deploys, but figured that was overkill.

Copy link
Member

@ssalinas ssalinas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@WH77 WH77 merged commit 6324a26 into master Feb 23, 2022
@WH77 WH77 deleted the retry-tasks-with-new-deploys branch February 23, 2022 21:16
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants