mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1071] [BUG] Some tasks are processed prior to scheduled time #2533
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2533
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arunmittalmrsool on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1071
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Describe the bug
Asynq works at a precision of seconds
If currentTime is 2025-08-27 16:25:16.871255 and ProcessTime is 10 seconds, then that task will be processAt 2025-08-27 16:25:26 but not at 2025-08-27 16:25:26.871255 OR 2025-08-27 16:25:27 due to https://github.com/hibiken/asynq/blob/master/internal/rdb/rdb.go#L677 (here we are storing processAt in Unix() precision, which missed extra .871255 seconds)
If user want that task to be processed only after X sec, not before that, then it can cause problem for their use case. Due to that we are missing some tasks processing.
Environment (please complete the following information):
asynqpackage version [e.g. v0.25.0]To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
Expected behavior
It should process that only after expected time.