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

Sub-minute syntax #52

Open
g105b opened this issue Jul 3, 2023 · 1 comment
Open

Sub-minute syntax #52

g105b opened this issue Jul 3, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@g105b
Copy link
Member

g105b commented Jul 3, 2023

This is non-standard, but it would be nice to be able to schedule a script for every 10 seconds. At the moment, * * * * * is equal to once per minute, which is currently the most frequent cron setting.

Setting */10 * * * * will trigger every 10 minutes.

My proposed syntax for every 10 seconds:

*:10 * * * *

The colon is obviously different than the slash, and is already used in time formats, so it shouldn't be too difficult to understand what this does without reading the docs.

@g105b g105b added the enhancement New feature or request label Jul 3, 2023
@g105b
Copy link
Member Author

g105b commented Jul 3, 2023

It might be worth dropping the 3rd party dependency to dragonmantank/cron-expression seeing as this will be non-standard now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant