2017 © Pedro Peláez
 

cakephp-plugin scheduler

An advanced scheduler for CakePHP

image

halftome/scheduler

An advanced scheduler for CakePHP

  • Thursday, December 8, 2016
  • by halftome
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

An advanced scheduler plugin for CakePHP

Software License Total Downloads Latest Stable Version, (*1)

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer halftome/scheduler

Setup the database with migrations:, (*4)

bin/cake migrations migrate -p Scheduler

Usage

The scheduler will only work if it is invoked, and will only be as precise as the interval it is invoked with. For an example, here is an example cron job using 1min (the shortest allowed interval on cron) as the interval:, (*5)

* * * * * cd /path/to/app && bin/cake Scheduler.Run

Here is an example configuration to run 2 tasks:, (*6)

// For example in your bootstrap.php
Configure::write('Scheduler.jobs', [
    'Newsletters' => [
        'interval' => '2 weeks',
    ],
    'CleanUp' => [
        'interval' => '15 minutes', // every 15min
        'command' => 'CleanUpDatabase clean',
        'extra' => [
            'foo' => 'bar',
        ],
        'timeout' => '15 minutes', // if task has not finished after 15min it will be aborted
    ],
    'QuotaCheck' => [
        'interval' => '6 hours',
    ],
]);

The Versions

08/12 2016

dev-master

9999999-dev https://github.com/half2me/scheduler

An advanced scheduler for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin cakephp scheduler cron