Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vrutkovs
Copy link
Contributor

@vrutkovs vrutkovs commented Aug 15, 2025

When immediate flag is unset, this function waits for interval first and only afterward runs the function the first time. This commit changes all function calls to use immediate true to make it run sooner.

With tracing the effects of these flags is most obvious.
Before:
image
reconcile.waitDeploymentReady doesn't do anything for a second and then runs client.Get

After:
image
Now reconcile.waitDeploymentReady takes 25 nanoseconds and runs client.Get immediately

Unfortunately I didn't get a chance to test this PR properly, as it affects a lot of areas in operators, but I can't think of a reason why would it cause regressions.

…te flag

When `immediate` flag is unset this function waits for `interval` first and only afterwards runs the
function the first time. This commit changes all function calls to use `immediate` true to make it
run sooner
* fix broken deploy reconcile test
* mention changes at changelog.md

Signed-off-by: f41gh7 <[email protected]>
@f41gh7 f41gh7 merged commit 69df2e7 into VictoriaMetrics:master Aug 17, 2025
1 of 2 checks passed
@f41gh7
Copy link
Collaborator

f41gh7 commented Aug 17, 2025

Thanks for contribution!

@f41gh7
Copy link
Collaborator

f41gh7 commented Aug 18, 2025

Feature was included into v0.62.0 release

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