Skip to content

Commit

Permalink
Merge branch 'main' into fix-48-respect-gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt authored Jan 20, 2021
2 parents f97bb08 + 1b5db7a commit 5027a75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/docs/api/cronjob.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
:::
7 changes: 6 additions & 1 deletion docs/docs/api/queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 5027a75

Please sign in to comment.