Skip to content

sp-niemand/yii2-jobby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

        ...

    ]

About

Jobby wrapper for Yii2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages