imper86/jobby-cron-bundle
最新稳定版本:v1.0.3
Composer 安装命令:
composer require imper86/jobby-cron-bundle
包简介
symfony bundle for jobbyphp/jobby
README 文档
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 :).
统计信息
- 总下载量: 8.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-10-07