Skip to content

Commit

Permalink
Merge pull request #2 from puneet-mehta/doc/multiple-cron-support
Browse files Browse the repository at this point in the history
doc(cron): multiple cron support
  • Loading branch information
rcarmo authored Jun 20, 2024
2 parents e280e1f + 09038c9 commit 5b3e05f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/configuration/procfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ Also, in this mode `uwsgi` will talk to `nginx` via a Unix socket, so you don't

A `cron` worker is a process that runs at a specific time (or intervals), using a simplified `crontab` expression preceding the command to be run (e.g. `cron: */5 * * * * python batch.py` to run a batch every 5 minutes)

Multiple crons can be scheduled by simply adding multiple entries with `cron` prefix.

```
...
cron1: */5 * * * * python batch.py
cron2: 0 * * * * python batch.py
...
```

!!! warning
`crontab` expressions are simplified and do not support ranges or lists, only single values, splits and `*` (wildcard).

Expand Down

0 comments on commit 5b3e05f

Please sign in to comment.