diff --git a/docs/docs/api/cronjob.md b/docs/docs/api/cronjob.md index a2ae8f8f1..5550b7fe7 100644 --- a/docs/docs/api/cronjob.md +++ b/docs/docs/api/cronjob.md @@ -30,3 +30,9 @@ To register cron jobs on deployment, run `quirrel ci` [during deployment](/deplo :::note If you're struggling with cron syntax, check out [crontab guru](https://crontab.guru/). ::: + +:::note +The `CronJob` call is detected using regular expressions. +This limits the first two parameters to static strings. +Using variables won't work. +::: diff --git a/docs/docs/api/queue.md b/docs/docs/api/queue.md index ab07b88df..ca2f329f9 100644 --- a/docs/docs/api/queue.md +++ b/docs/docs/api/queue.md @@ -62,7 +62,12 @@ todoReminders.enqueue(todo.id, { Runs three times: At `scheduled_date`, one day later and two days later. -#### CRON Job +#### CRON Schedule + +:::note Cron Jobs +This example is about *regular* Jobs, executed on a cron schedule. +If you're looking for Cron Jobs, take a look at the more idiomatic [`CronJob`](./cronjob). +::: ```ts billingQueue.enqueue(undefined, {