leuchtdiode / laminas-cron
Laminas module for cron execution
0.8.0
2024-02-20 09:08 UTC
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- amphp/process: ^1.1.0
- dragonmantank/cron-expression: ^3.3.0
- leuchtdiode/laminas-common: ^2.7.0
- ramsey/uuid-doctrine: ^2.0.0
Suggests
- laminas/laminas-xmlrpc: Mandatory for WIKI sync
- leuchtdiode/laminas-notification: Mandatory for monitoring
README
This module provides the possibility to configure the applications crontabs via Laminas config.
The only crontab which has to be run "outside" on the host machine is
* * * * * vendor/bin/laminas-cron process
The processable jobs are being executed in parallel (sub processes) thanks to amphp/process
.
You can enable a second crontab for monitoring purposes. Adapt the execution time to your needs:
? ? ? ? ? vendor/bin/laminas-cron monitoring
The monitoring job is separate to not interfer with errors which are happening during processing. Monitoring would be useless if the monitoring job dies within exectuion.
Use vendor/bin/laminas-cron help
to show all possible commands.