imper86 / jobby-cron-bundle
symfony bundle for jobbyphp/jobby
Installs: 8 046
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- hellogerard/jobby: ^3.4
- symfony/config: ^3.4 || ^4.0 || ^5.0
- symfony/console: ^3.4 || ^4.0 || ^5.0
- symfony/dependency-injection: ^3.4 || ^4.0 || ^5.0
- symfony/http-kernel: ^3.4 || ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-10-07 00:24:57 UTC
README
This bundle uses excellent hellogerard/jobby library to provide you easy way to manage cron jobs.
Installation
As always use composer to install bundle:
composer require imper86/jobby-cron-bundle
Add the following line to the crontab:
* * * * * cd /path/to/project && php bin/console i86:jobby:execute 1>> /dev/null 2>&1
Additional steps for apps without symfony flex
Add bundle to your bundles.php
Imper86\JobbyBundle\Imper86JobbyBundle::class => ['all' => true],
Configuration
Configuration of this bundle is mirror of Jobby config, splitted into two sections - globals and jobs.
In globals section you can define default config for every job.
Example, minimal config:
imper86_jobby: jobs: foojob: command: 'app:foo' barjob: command: 'app:bar' schedule: '*/15 * * * *'
Please use ./bin/console config:dump imper86_jobby
for details.
Contributing
Any help will be appreciated :).