Download the PHP package lingoda/cron-bundle without Composer
On this page you can find all versions of the php package lingoda/cron-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cron-bundle
Lingoda's cron bundle
This bundle allows scheduling of jobs that will execute in a different process than the process that triggered them
How to use
Either extend the ScheduleBaseCronJob
abstract class or implement the CronJobInterface
interface. These will automatically be recognized by your Symfony application. Then there's nothing left to do than execute the command bin/console lg:cron:trigger-due-jobs
. This will send a message on the application's messenger bus for each recognized cron job that is due. Usually, this means that a message will be put on some sort of a queue which will then be picked up by a handler which will actually run the job.
When implementing a cron job, you shall not expect the cron to actually run at the scheduled times.
- The queue might be unavailable or overloaded, and you can't predict the delay
- The actual previous run time will be passed to your run method. Use it!
- The job might be run manually. Or it might have been run manually previously. Even multiple times.
Triggering individual jobs
Examples
Extending ScheduleBaseCronJob
Implementing CronJobInterface
All versions of cron-bundle with dependencies
ext-pcntl Version *
ext-zip Version *
ext-zlib Version *
doctrine/orm Version ^2.10
dragonmantank/cron-expression Version ^3.3
lorisleiva/cron-translator Version ^0.4.5
nesbot/carbon Version ^2.71 || ^3.0
psr/log Version ^1.1 || ^3.0
symfony/cache Version ^5.4 || ^6.0 || ^7.0
symfony/config Version ^5.4 || ^6.0 || ^7.0
symfony/console Version ^5.4 || ^6.0 || ^7.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0
symfony/lock Version ^5.4 || ^6.0 || ^7.0
symfony/messenger Version ^5.4 || ^6.0 || ^7.0
webmozart/assert Version ^1.11