Skip to content

Halt emitting config-reloader signals when delay-interval is customized#2172

Merged
vrutkovs merged 3 commits into
masterfrom
config-reloader-delay-interval
May 15, 2026
Merged

Halt emitting config-reloader signals when delay-interval is customized#2172
vrutkovs merged 3 commits into
masterfrom
config-reloader-delay-interval

Conversation

@vrutkovs
Copy link
Copy Markdown
Collaborator

Each reload called a separate goroutine, instead we should use delay-interval to prevent other goroutines from running.

Fixes #2171

Each reload called a separate goroutine, instead we should use delay-interval
@vrutkovs vrutkovs requested a review from AndrewChubatiuk as a code owner May 15, 2026 11:17
@vrutkovs vrutkovs changed the title fix: emitting config-reloader signals when delay-interval is customized Halt emitting config-reloader signals when delay-interval is customized May 15, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Comment thread cmd/config-reloader/main.go
@vrutkovs vrutkovs force-pushed the config-reloader-delay-interval branch from 55f6a52 to f98bf75 Compare May 15, 2026 11:54
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="cmd/config-reloader/main.go">

<violation number="1" location="cmd/config-reloader/main.go:278">
P2: `waitDelay` skips draining pending update signals when `-delay-interval <= 0`, which regresses coalescing and can trigger redundant reloads for a single burst of updates.</violation>
</file>

Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic

Comment thread cmd/config-reloader/main.go Outdated
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Signed-off-by: Andrii Chubatiuk <andrew.chubatiuk@gmail.com>
@vrutkovs vrutkovs merged commit f03aa5d into master May 15, 2026
7 checks passed
@vrutkovs vrutkovs deleted the config-reloader-delay-interval branch May 15, 2026 12:47
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.

config-reloader doesn't respect delay-interval

2 participants