asynq icon indicating copy to clipboard operation
asynq copied to clipboard

Support cronspec seconds field

Open acaloiaro opened this issue 1 year ago • 0 comments

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 * * * * *

acaloiaro avatar Apr 12 '23 23:04 acaloiaro