This repository was archived by the owner on Jan 5, 2021. It is now read-only.
v0.7.0
This is a big release!
CRON Jobs
You can now specify your jobs to run on a CRON schedule.
queue.enqueue(
...,
{
id: "myCronJob",
repeat: {
cron: "* * * * 1 *",
}
}
)repeat.times is now optional, so jobs can repeat indefinitely.
repeat.everyandrepeat.cronare mutually exclusive.
Human-friendly duration syntax
Because millisecond durations are quite hard to understand mentally, the Quirrel client now also supports specifying durations as human-readable strings:
queue.enqueue(
...,
{
- delay: 60 * 60 * 1000,
+ delay: "1h"
}
)This works both for delay and repeat.every.