Skip to content

fix(config): reject non-positive SCHEDULER_ENTRY_FREQUENCY_FACTOR values#4470

Merged
fguillot merged 1 commit into
mainfrom
fix/scheduler-entry-frequency-factor-validation
Jul 21, 2026
Merged

fix(config): reject non-positive SCHEDULER_ENTRY_FREQUENCY_FACTOR values#4470
fguillot merged 1 commit into
mainfrom
fix/scheduler-entry-frequency-factor-validation

Conversation

@fguillot

Copy link
Copy Markdown
Member

SCHEDULER_ENTRY_FREQUENCY_FACTOR was the only scheduler option without a validator, so 0 was accepted at startup. With the entry_frequency polling scheduler, the factor is used as part of a divisor in ScheduleNextCheck, and a feed with weekly entries then triggered a division-by-zero panic inside a background worker, crashing the daemon.

Require the factor to be >= 1, matching the validation of the other scheduler options, so the misconfiguration fails at startup instead.

SCHEDULER_ENTRY_FREQUENCY_FACTOR was the only scheduler option without a
validator, so 0 was accepted at startup. With the entry_frequency polling
scheduler, the factor is used as part of a divisor in ScheduleNextCheck,
and a feed with weekly entries then triggered a division-by-zero panic
inside a background worker, crashing the daemon.

Require the factor to be >= 1, matching the validation of the other
scheduler options, so the misconfiguration fails at startup instead.
@fguillot
fguillot merged commit 308e1f9 into main Jul 21, 2026
13 of 15 checks passed
@fguillot
fguillot deleted the fix/scheduler-entry-frequency-factor-validation branch July 21, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant