Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc ('pattern' -> 'match') #499

Merged
merged 3 commits into from
Nov 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions website/docs/cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ has the following properties:

- `task` (required): the string identifier of the task that should be executed
(same as the first argument to `add_job`)
- `pattern` (required): a cron pattern (e.g. `* * * * *`) describing when to run
this task
- `match` (required): a cron pattern (e.g. `* * * * *`) describing when to run,
or a callback function passed a TimestampDigest and returning a boolean
whether the cron should fire for this timestamp (true) or not (false) this
task
- `options`: optional options influencing backfilling, etc
- `backfillPeriod`: how long (in milliseconds) to backfill (see above)
- `maxAttempts`: the maximum number of attempts we'll give the job
Expand Down
Loading