Skip to content

Remove stale periodic job from queue on requeue cycle#18

Merged
hageshtrem merged 1 commit intomasterfrom
slow-periodic-job
Jul 10, 2023
Merged

Remove stale periodic job from queue on requeue cycle#18
hageshtrem merged 1 commit intomasterfrom
slow-periodic-job

Conversation

@hageshtrem
Copy link
Copy Markdown
Collaborator

@hageshtrem hageshtrem commented Jul 7, 2023

The goal is to avoid the accumulation of a large queue when the running time of one job exceeds the schedule interval.
In this PR, in each requeue cycle, the next job in the queue is checked to see if the deadline has expired and removed if it has.

@hageshtrem hageshtrem requested review from aermolaev and lzakharov July 7, 2023 18:20
Comment thread redis.go Outdated
@hageshtrem hageshtrem merged commit 16f007b into master Jul 10, 2023
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.

3 participants