mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #806] [BUG] Inaccurate timing of scheduled execution #1413
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#1413
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 @shaMiaoMiao on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/806
Originally assigned to: @hibiken on GitHub.
I use tables in the database to control the number and triggering time of asynchronous scheduled tasks,
but in the actual running process, I found that the mechanism of scheduled triggering does not match the crontab expression I set, such as: 0 10-22/6 * *?, Expect to execute tasks at 10am, 16pm, and 22am every day.
But in reality, it was executed every six hours starting from 0:00. What is the possible reason for this?
The following is the code for me to control scheduled tasks through Manager and Worker:
Worker.go
Manager.go:
Hope to receive help, thank you~
@kamikazechaser commented on GitHub (Jan 28, 2024):
What exactly is your cron expression? Have you tried
0 10,16,22 * * *?@Otetz commented on GitHub (Dec 28, 2024):
Please see crontab man pages for
/syntax: https://www.man7.org/linux/man-pages/man5/crontab.5.html part started with "Step values".At now looks like
asynqmonsupports this step values, butasynq schedulernot. At nowasynq schedulerinterpret*/5simple as*and this incorrect.