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

Increase total wait time if file busy #3

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Increase total wait time if file busy #3

merged 1 commit into from
Dec 15, 2022

Conversation

gunnsth
Copy link

@gunnsth gunnsth commented Dec 15, 2022

Previously would only try 3 times, for max total 700 ms. This might not be enough for some slow processes.
With this change goes up to 100 times. With backoff, the retries will be at intervals

100ms - 100ms
200ms - 300ms
400ms - 700ms
800ms - 1.5s
1.6s - 3.1s
3.2s - 6.3s
6.4s - 12.7s
10s - 22.7s
... and tries every 10s after this for about 15m max, after that will exit

@gunnsth gunnsth merged commit 4394d3d into master Dec 15, 2022
@gunnsth gunnsth deleted the gunnsth-patch-2 branch December 15, 2022 00:02
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.

1 participant