Releases: quirrel-dev/quirrel-next
v0.10.0
Quirrel v0.10 comes with two new options for jobs:
exclusive
Jobs
A job that's marked as exclusive is guaranteed to be executed
on its own, with no other jobs from the same queue running
at the same time.
This can be useful when need to execute jobs one by one, for example when implementing an order queue.
override: true
Until now, when creating a job with an ID that already existed, the new job was discarded.
With override, you can now mark the job to override potentially existing old ones.
v0.8.1
v0.8.0
Compatibility with Quirrel v0.8.0.
This saves you from having to run a local Redis instance.
Read more about it here: https://github.com/quirrel-dev/quirrel/releases/tag/v0.8.0
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.every
andrepeat.cron
are 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
.