[GH-ISSUE #1052] [FEATURE REQUEST] Need second level cron spec support #2528

Open
opened 2026-03-15 20:47:56 +03:00 by kerem · 1 comment
Owner

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.

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.
Author
Owner

@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.

<!-- gh-comment-id:2909184980 --> @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.
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#2528
No description provided.