[GH-ISSUE #1044] does the timing that I see from enqueuing until finish processing is so delayed #2519

Closed
opened 2026-03-15 20:46:09 +03:00 by kerem · 2 comments
Owner

Originally created by @zahTayar on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1044

when I am running the simplest task
the enqueue process takes 17 milliseconds

the processing time is 24 milliseconds
between them the task is sitting inside the queue for 480 milliseconds
why is that?
how can I fix it?
I am using TaskCheckInterval: 0,

can someone help me?

Originally created by @zahTayar on GitHub (Apr 16, 2025). Original GitHub issue: https://github.com/hibiken/asynq/issues/1044 when I am running the simplest task the enqueue process takes 17 milliseconds the processing time is 24 milliseconds between them the task is sitting inside the queue for 480 milliseconds why is that? how can I fix it? I am using TaskCheckInterval: 0, can someone help me?
kerem 2026-03-15 20:46:09 +03:00
Author
Owner

@nhymxu commented on GitHub (Apr 21, 2025):

github.com/hibiken/asynq@c327bc40a2/server.go (L110-L117)

When set to 0, interval set back to 1 second, like comment.

You can set to nanosecond with time.Duration(1), but I'm not recommend it

<!-- gh-comment-id:2819083511 --> @nhymxu commented on GitHub (Apr 21, 2025): https://github.com/hibiken/asynq/blob/c327bc40a28e4db45195cfe082d88faa808ce87d/server.go#L110-L117 When set to 0, interval set back to 1 second, like comment. You can set to nanosecond with `time.Duration(1)`, but I'm not recommend it
Author
Owner

@kamikazechaser commented on GitHub (May 5, 2025):

@zahTayar Read the documentation here:

github.com/hibiken/asynq@c327bc40a2/processor.go (L179)

<!-- gh-comment-id:2850506272 --> @kamikazechaser commented on GitHub (May 5, 2025): @zahTayar Read the documentation here: https://github.com/hibiken/asynq/blob/c327bc40a28e4db45195cfe082d88faa808ce87d/processor.go#L179
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2519
No description provided.