Skip to content

perf(queueing): let QUEUE_CHECK_INTERVAL_MS set how often an idle worker looks for work - #10

Closed
arjendevos wants to merge 1 commit into
mainfrom
perf/queue-check-interval
Closed

arjendevos wants to merge 1 commit into
mainfrom
perf/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.

QUEUE_CHECK_INTERVAL_MS now sets asynq's TaskCheckInterval. Unset or 0 keeps asynq's 1 s default, so nothing changes for apps that don't set it.

…ker looks for work

asynq waits about a second between looks when its queues are empty, so a job dispatched to an idle queue sat up to 1.5 s before starting. Unset keeps asynq's default.

Copy link
Copy Markdown
Contributor Author

Replaced by #16: the interval comes from config.Queue (per pool) instead of QUEUE_CHECK_INTERVAL_MS.

@arjendevos arjendevos closed this Nov 23, 2026
@arjendevos
arjendevos deleted the perf/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