This repository was archived by the owner on Sep 5, 2025. It is now read-only.
Add exponential backoff for job status polling#6
Merged
Conversation
5d24cb7 to
e27aab9
Compare
ondrajodas
commented
Aug 26, 2025
|
|
||
| sleep(1); | ||
| // 10, 20, 40, 80, 160, 320, 640, 1000ms (max) | ||
| $waitMilliseconds = min(pow(2, $tries)*10, 1000); |
Contributor
Author
There was a problem hiding this comment.
- nevím, možná by to tu stačilo 100, 200, 400, 800, 1000m
- nebo začínat trochu dál s tou řadou 110, 120, 140, 180, 260, 320, 740, 1000ms
Member
There was a problem hiding this comment.
no těch 10 je asi dost málo, začal bych tak aspoň 50 nebo 70, těch 100 už je možná zase i hodně, protože do 2 kontroly uběhne 300 ms a do 3 kontroly uběhne už 700ms
Contributor
Author
There was a problem hiding this comment.
ok, přičteme k tomu vždy 50, tak to začne na 60ms :)
fcafebf to
9bf9729
Compare
Contributor
|
@ondrajodas please rebase, there are some conflicts. |
390fc06 to
bff26b5
Compare
Contributor
Author
|
@ujovlado done, v mém rebase žádné konflikty nebyly :D |
Contributor
|
Github 🤷 |
ujovlado
approved these changes
Aug 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
https://keboola.atlassian.net/browse/AJDA-998