2017 © Pedro Peláez
 

yii2-extension yii2-crontask

yii2 cron task manager

image

gofmanaa/yii2-crontask

yii2 cron task manager

  • Thursday, June 7, 2018
  • by gofmanaa
  • Repository
  • 1 Watchers
  • 7 Stars
  • 2,727 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

gofmanaa/yii2-crontask

yii2 cron task manager, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist gofmanaa/yii2-crontask "*"

or add, (*4)

"gofmanaa/yii2-crontask": "*"

to the require section of your composer.json file., (*5)

Requirements

Linux OS Yii2, (*6)

Usage

Add to console config:, (*7)

return [
    'bootstrap' => [
        'crontask'
    ],
    'modules' => [
        'crontask' => [
            'class' => 'gofmanaa\crontask\Module',
            'fileName'=>'cron.txt', //optional
            'params'=>[ '2>&1' ], //common params
            'yiiPath' => null // yii execute path
            'phpPath' => '/usr/bin/php', //default php path
            'tasks'=>[
                'dosomething'=>
                            [
                               'params'=>[ '--some=something' , '>/dev/null' ], //task params
                               'command'=>'path/to/controller/action',
                               'min'=>'*/1',
                               'hour'=>'*',
                               'day'=>'*',
                               'month'=>'*',
                               'dayofweek'=>'*',
                            ],
                'dosomething2'=>
                            [
                                'command'=>'path/to/controller/action',
                                'min'=>'*/2',
                            ],
            ]
        ],
    ],
]

Console command

- crontask                    Provides cron information about console commands.
    crontask/index (default)  Displays available commands or the detailed information
    crontask/ls               List App Cron tasks;   crontask/ls a All cron jobs
    crontask/start            Start cron tasks,  "crontask/start dosomething2"  start single task
    crontask/stop             Stop App cron. "crontask/stop 3"  stop task by index 3 
    crontask/restart          Restart cron tasks

The Versions

07/06 2018

dev-master

9999999-dev

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab

07/06 2018

1.4

1.4.0.0

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab

18/05 2017

1.3

1.3.0.0

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab

19/10 2016

1.2

1.2.0.0

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab

02/03 2016

1.1

1.1.0.0

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab

18/01 2016

1.0

1.0.0.0

yii2 cron task manager

  Sources   Download

BSD-3-Clause

The Requires

 

by Alexander Gofman

extension yii2 task cron crontab