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

waitForTask: switch from polling every 5s to an incremental 2s, 3s, 4.5s, 6.75s, ~10s... progression #3738

Merged
merged 1 commit into from
May 29, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented May 19, 2023

Optimizes for tasks finishing early by trying more often in the beginning,
but also ends up waiting longer for long-running tasks

this takes the default waitForTask max wait from $5 * 10 = 50s$,
to $\displaystyle\sum_{n=1}^{10} 2 * 1.5^n \approx 226s$.

Related to AAH-2347 - we just need to wait a bit longer for long-running tasks.

@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels May 19, 2023
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label May 19, 2023
@himdel himdel removed the backport-4.7 This PR should be backported to stable-4.7 (2.4) label May 29, 2023
@himdel himdel added the insights insights-only feature label May 29, 2023
….5s, 6.75s, ~10s... progression

optimizes for tasks finishing early by trying more often in the beginning,
but also ends up waiting longer for long-running tasks

this takes the default waitForTask max wait from $`5 * 10 = 50s`$,
to $` \displaystyle\sum_{n=1}^{10} 2 * 1.5^n \approx 226s `$.

Related to AAH-2347

No-Issue
@himdel himdel merged commit 3ccc035 into ansible:master May 29, 2023
@himdel himdel deleted the wait-multiply branch May 29, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
insights insights-only feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant