asynq
asynq copied to clipboard
Support cronspec seconds field
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 * * * * *