2017 © Pedro Peláez
 

library yii2-jobby

Jobby wrapper for Yii2

image

sp-niemand/yii2-jobby

Jobby wrapper for Yii2

  • Thursday, May 21, 2015
  • by sp-niemand
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-jobby

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

Basic usage

Add jobby module to your configuration file:, (*2)

'modules' => [

    ...

    'jobby' => [
        'class' => '\jobbyDb\JobbyModule',
    ],

    ...

]

Add <projectPath>/yii jobby to your scheduler configuration. For example, cron:, (*3)

    * * * * * /var/www/project/yii jobby

Now you can use jobby SQL table in MySQL or something similar to configure and schedule tasks., (*4)

Advanced usage

It is possible to inject your own model class into the module. Your model must implement \jobbyDb\model\JobbyModelInterface, (*5)

    'modules' => [

        ...

        'jobby' => [
            'class' => '\jobbyDb\JobbyModule',
            'modelClass' => '\rootNamespace\RedisJobbyModel',
        ],

        ...

    ]

The Versions

21/05 2015

dev-master

9999999-dev https://github.com/sp-niemand/yii2-jobby

Jobby wrapper for Yii2

  Sources   Download

MIT

The Requires

 

by Dmitri Cherepovski

yii2 scheduler jobby