Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Add task retry#55

Open
otherpirate wants to merge 2 commits into
tsuru:masterfrom
otherpirate:master
Open

Add task retry#55
otherpirate wants to merge 2 commits into
tsuru:masterfrom
otherpirate:master

Conversation

@otherpirate

Copy link
Copy Markdown

Hi,

This code add a feature required in #42

Retry work in all tasks:
NewInstanceTask
RemoveInstanceTask
ScaleInstanceTask
RestoreMachineTask
CheckMachineTask
DownloadCertTask
RevokeCertTask
RenewCertsTask
SessionResumptionTask

I added two new environment configurations:
RETRY_COUNTDOWN: Time in seconds between each retry
MAX_RETRIES: Max number of retries/attempts

I'm not sure how can I test/run this project, so far I just test in my shell

@morpheu

morpheu commented Oct 23, 2018

Copy link
Copy Markdown
Member

Hi,

Thanks for your PR. There are some tasks that don't need to be retried since they are scheduled by API and already have retried logic within. Your PR should ignore those tasks:

RestoreMachineTask
CheckMachineTask
DownloadCertTask
RevokeCertTask
RenewCertsTask
SessionResumptionTask

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants