Skip to content

Commit

Permalink
cronjobs added
Browse files Browse the repository at this point in the history
  • Loading branch information
EofChris committed Sep 16, 2024
1 parent 7b864af commit ae7dc9c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions Writerside/c.tree
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<toc-element topic="Home.topic">
</toc-element>
<toc-element topic="Developer.md">
<toc-element topic="Cronjobs.md"/>
<toc-element topic="Running-Tests.md"/>
<toc-element topic="Getting-Started.md"/>
<toc-element topic="Debugging.md"/>
Expand Down
22 changes: 22 additions & 0 deletions Writerside/topics/Cronjobs.md
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])
```

0 comments on commit ae7dc9c

Please sign in to comment.