mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1052] [FEATURE REQUEST] Need second level cron spec support #2528
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#2528
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 @kizy008 on GitHub (May 26, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1052
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Is your feature request related to a problem? Please describe.
the cron spec in asynq is only support to minute level, but robfig/cron support to second level.
Is it possible to add an option in SchedulerOpts, that make it can support second cron spec.
Describe the solution you'd like
Add an option property in SchedulerOpts, When we new a Scheduler's cron, we can use cron.WithSeconds.
I think the new property can be set false defaultly, so the existed scheduler will not be influnced, and behave normally.
@kizy008 commented on GitHub (May 26, 2025):
I tried to do this job by myself by define a new scheduler creator function, but I found logger and rdb properties in Scheduler are under internal directory.
So I am very appreciated for your kindly advise, thank you.