This is a package for Yii2 framework. Store tasks for Jobby in your database (key-value storage, whatever).
Add jobby module to your configuration file:
'modules' => [
...
'jobby' => [
'class' => '\jobbyDb\JobbyModule',
],
...
]
Add <projectPath>/yii jobby
to your scheduler configuration. For example, cron:
* * * * * /var/www/project/yii jobby
Now you can use jobby
SQL table in MySQL or something similar to configure and schedule tasks.
It is possible to inject your own model class into the module.
Your model must implement \jobbyDb\model\JobbyModelInterface
'modules' => [
...
'jobby' => [
'class' => '\jobbyDb\JobbyModule',
'modelClass' => '\rootNamespace\RedisJobbyModel',
],
...
]
No stable releases.
Comments