2017 © Pedro Peláez
 

cakephp-plugin cakephp-queue

A minimalistic Queue Plugin for CakePHP

image

oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  • Thursday, September 28, 2017
  • by oefenweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10,924 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 14 Versions
  • 4 % Grown

The README.md

Queue plugin for CakePHP

Build Status PHP 7 ready Coverage Status Packagist downloads Code Climate Scrutinizer Code Quality, (*1)

Requirements

  • CakePHP 2.9.0 or greater.
  • PHP 7.0.0 or greater.

Installation

Clone/Copy the files in this directory into app/Plugin/Queue, (*2)

Configuration

Ensure the plugin is loaded in app/Config/bootstrap.php by calling:, (*3)

CakePlugin::load('Queue');

Ensure to configure the following lines in app/Config/bootstrap.php:, (*4)

Configure::write('Queue.workers', 3);
Configure::write('Queue.sleepTime', 10);
Configure::write('Queue.gcprop', 10);
Configure::write('Queue.defaultWorkerTimeout', 2 * MINUTE);
Configure::write('Queue.defaultWorkerRetries', 4);
Configure::write('Queue.workerMaxRuntime', 0);
Configure::write('Queue.cleanupTimeout', DAY);
Configure::write('Queue.exitWhenNothingToDo', false);
Configure::write('Queue.gcOnExit', true);

Load schema:, (*5)

Console/cake schema create;

Usage

Console

Run from your APP folder:, (*6)

# Tries to call the `add()` function on a task.
Console/cake Queue.queue add <taskname>;
# Run a queue worker.
Console/cake Queue.queue runworker;
# Display some general statistics.
Console/cake Queue.queue stats;
# Manually call cleanup function to delete task data of completed tasks.
Console/cake Queue.queue clean;
# Manually call cleanup_failed function to delete task data of failed tasks.
Console/cake Queue.queue clean_failed;

Running only specific tasks per worker

You can filter "running" by type:, (*7)

Console/cake Queue.queue runworker -t MyType,AnotherType,-ThisOneToo
Console/cake Queue.queue runworker -t "-ThisOneNot"

Use - prefix to exclude. Note that you might need to use "" around the value then to avoid it being seen as option key., (*8)

That can be helpful when migrating servers and you only want to execute certain ones on the new system or want to test specific servers., (*9)

The Versions

28/09 2017

dev-master

9999999-dev http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

28/09 2017

v1.4.6

1.4.6.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

04/05 2017

v1.4.5

1.4.5.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

05/04 2017

v1.4.4

1.4.4.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

08/12 2016

v1.4.3

1.4.3.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

28/05 2016

v1.4.2

1.4.2.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

09/03 2016

v1.4.1

1.4.1.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

12/02 2016

v1.4.0

1.4.0.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

06/11 2015

v1.3.0

1.3.0.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

27/07 2015

v1.2.2

1.2.2.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

24/12 2014

v1.2.1

1.2.1.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

24/12 2014

v1.2.0

1.2.0.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

24/12 2014

v1.1.0

1.1.0.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue

17/12 2014

v1.0.0

1.0.0.0 http://github.com/Oefenweb/cakephp-queue

A minimalistic Queue Plugin for CakePHP

  Sources   Download

MIT

The Requires

 

cakephp queue