Skip to content

feat(queueing): set how often idle workers look for work from the config - #16

Closed
arjendevos wants to merge 4 commits into
feat/redis-configfrom
feat/queue-check-interval
Closed

arjendevos wants to merge 4 commits into
feat/redis-configfrom
feat/queue-check-interval

Conversation

@arjendevos

Copy link
Copy Markdown
Contributor

asynq waits about a second (0.5 to 1.5 s with jitter) between looks when its queues are empty, so a job dispatched to an idle queue can sit up to 1.5 s before it starts. Checklane's runner launch is such a job: a customer's CI waits on it.

config.Queue gains CheckInterval for the default queue's workers, and config.QueueGroup one for each group's, passed to each asynq server as TaskCheckInterval. A group someone waits on can look often while the rest keep the default. 0 keeps asynq's second.

Replaces #10, which read QUEUE_CHECK_INTERVAL_MS in core itself.

Stacked on #15.

asynq waits about a second (0.5 to 1.5s with jitter) between looks when its
queues are empty, so a job dispatched to an idle queue can sit up to 1.5s
before it starts. The default queue and each group now take a CheckInterval
in config.Queue, so a group someone waits on can look often without every
worker doing so. 0 keeps asynq's.

Copy link
Copy Markdown
Contributor Author

Folded into #17.

@arjendevos arjendevos closed this Nov 23, 2026
@arjendevos
arjendevos deleted the feat/queue-check-interval branch November 23, 2026 18:20
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.

1 participant