sp-niemand/yii2-jobby Jobby wrapper for Yii2

jobbyscheduler

yii2-jobby

This is a package for Yii2 framework. Store tasks for Jobby in your database (key-value storage, whatever).

Basic usage

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.

Advanced usage

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',
        ],

        ...

    ]

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
2 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
17 total downloads