2017 © Pedro Peláez
 

cakephp-plugin cakephp-task-plugin

Plugin for run deffered (scheduled) tasks (console scripts)

image

imsamurai/cakephp-task-plugin

Plugin for run deffered (scheduled) tasks (console scripts)

  • Wednesday, February 17, 2016
  • by imsamurai
  • Repository
  • 5 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 5 Open issues
  • 33 Versions
  • 0 % Grown

The README.md

Cakephp Task Plugin

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Plugin for run deffered (scheduled) tasks (console scripts), (*2)

!Scheduled run is not available yet!, (*3)

Installation

Composer (for ex. version 1.0.0):, (*4)

{
    "require": {
        "imsamurai/cakephp-task-plugin": "1.0.0"
    }
}

it installs in Plugin directory (in same level with composer.json) so you may want to add Plugin/Task into ignore file., (*5)

or clone:, (*6)

cd my_cake_app/app
git clone git://github.com/imsamurai/cakephp-task-plugin.git Plugin/Task

or if you use git add as submodule:, (*7)

cd my_cake_app
git submodule add "git://github.com/imsamurai/cakephp-task-plugin.git" "app/Plugin/Task"

then add plugin loading in Config/bootstrap.php, (*8)

CakePlugin::load('Task', array('bootstrap' => true));

add tables from Config/Schema/tasks.sql, (*9)

include https://github.com/symfony/Process and https://github.com/kriswallsmith/spork in your project, for ex with composer (tested with 2.3 version), (*10)

Configuration

Write global config if you need to use custom settings function:, (*11)

Configure::write('Task', array(
  //maximum runned tasks at the same time
  'maxSlots' => <number of slots>
));

Usage

Use TaskClient::add() for adding new tasks Put Console/cake Task.task server in the cron, for ex each 1-5 minutes (depends on your needs) Try http://yourdomain/task/ for basic view, (*12)

The Versions

08/08 2014
08/08 2014
23/07 2014
22/07 2014
22/07 2014
16/07 2014
16/07 2014
26/06 2014
19/01 2014
17/01 2014

1.0.0

1.0.0.0 http://github.com/imsamurai/cakephp-task-plugin

Plugin for run deffered (scheduled) tasks (console scripts)

  Sources   Download

MIT

The Requires

 

plugin cakephp task process