Download the PHP package se7enxweb/ezplatform-cron without Composer
On this page you can find all versions of the php package se7enxweb/ezplatform-cron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ezplatform-cron
ezplatform-cron
This package exposes cron/cron package for use in eZ Platform (or just plain Symfony) via a simle command
ezplatform:cron:run.
This is not a replacement for cron/cron-bundle but rather a simpler alternative to it which can more esaily grow into focusing more on eZ Platform needs in the future including e.g. support for handling cron jobs across a cluster install (separating jobs that should run on all nodes vs jobs that should only be run on one at a time and a lock system to go with it for instance).
Setup system cron
Pick your systems cron / scheduling and setup ezplatform:cron:run command to run every minute and optionally specifying category (default: default):
Example for Linux crontab (crontab -e):
Setting up own cron commands
Setting up own cron jobs is as simple as tagging services for your existing Symfony Commands.
The tag takes the following arguments:
name:ezplatform.cron.jobschedule: Takes any kind of format supported by cron/cron, which mimics linux crontab format. E.g.* * * * *category: (Optional, by default:default) Lets you separate cronjobs that should be run under different logic then default, e.g. infrequent jobs (NOTE: Means end user will need to setup several entries in his crontab to run all categories!)options: (Optional, by default:'') Takes custom option/s in string format which are added to the command. (E.g. '--keep=0 --status=draft' for running the cleanup versions command)
Example
Logging run command
If you want to log outputs of commands processed by run command you have to add the monolog channel cronjob to your configuration.
Example
All versions of ezplatform-cron with dependencies
cron/cron Version ^1.4
symfony/dependency-injection Version ^5.0
symfony/http-kernel Version ^5.0
symfony/console Version ^5.0
symfony/config Version ^5.0
symfony/process Version ^5.0
ezsystems/ezplatform-kernel Version ^1.3