Skip to content
This repository was archived by the owner on Jan 5, 2021. It is now read-only.

v0.7.0

Choose a tag to compare

@Skn0tt Skn0tt released this 16 Oct 16:25
· 7 commits to master since this release

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 and repeat.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.