-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Cronjobs | ||
|
||
## Running regular cronjobs | ||
Crons are run by executing the CronCommand from the command line. | ||
By default this will run all available cronjobs not run in the last 23 hours. | ||
|
||
```bash | ||
bin/console commsy:cron:main | ||
``` | ||
|
||
## How cronjobs are processed | ||
Running a cron will dispatch an async message, that will be picked up | ||
by a runner and finally performed. | ||
If a job is successfull another message is dispatched to update the last | ||
run in the cron table. | ||
|
||
```mermaid | ||
graph TB | ||
A[Cron execution] -- dispatch --> B([CronTaskRun Message]) | ||
B -- handled by --> C(Message Worker) | ||
C -- dispatch --> D([CronTaskFinished Message]) | ||
``` |