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

Support cronspec seconds field #644

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acaloiaro
Copy link

This is related to #447

As a user it can be surprising to discover how to specify asynq tasks with second-level resolution.

This extends the cronspec parser to support the seconds field. Currently, cronspecs must be specified with the @every Xs format when they're to be run more frequently than every minute.

This PR permits the 6th cronspec field (seconds) to be used when specifying periodic asynq tasks.

E.g.

@every 1s -> * * * * * *
@every 30s -> */30 * * * * *

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

Successfully merging this pull request may close these issues.

2 participants