Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] can add opt for cron to set second #894

Open
kissIce opened this issue Jun 19, 2024 · 2 comments
Open

[FEATURE REQUEST] can add opt for cron to set second #894

kissIce opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
investigate question Further information is requested

Comments

@kissIce
Copy link

kissIce commented Jun 19, 2024

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()

@kissIce kissIce added the enhancement New feature or request label Jun 19, 2024
@kamikazechaser
Copy link
Collaborator

kamikazechaser commented Jun 21, 2024

like The 50th second of every minute

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.

@kamikazechaser kamikazechaser added question Further information is requested investigate and removed enhancement New feature or request labels Jun 21, 2024
@HelloDing2333
Copy link

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants