mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #894] [FEATURE REQUEST] can add opt for cron to set second #2467
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#2467
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 @kissIce on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/894
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
yes, my project want to set cron like The 50th second of every minute,but canot to finish it. because asynq no opt to set cron opt. it only can set min crontab express is minute,only a fixed interval second can be set。 not flexible
Describe the solution you'd like
i want asynq can add opt or func to set cron opt, such as asynq have one func to set cron.WithSeconds() cron.WithParser()
@kamikazechaser commented on GitHub (Jun 21, 2024):
Well the official cronspec doens't support sub minute intervals. There are custom parsers that support this.
https://pkg.go.dev/github.com/robfig/cron/v3#hdr-Alternative_Formats
I'm not sure if we should default to this. At best, maybe allow replacing the parser.
@HelloDing2333 commented on GitHub (Jun 24, 2024):
yes
@canhlinh commented on GitHub (Mar 27, 2025):
Cron supports second by adding this
cron.New(cron.WithSeconds())Please support this feature
@canhlinh commented on GitHub (Mar 27, 2025):
@kissIce here is a workaround