nyeholt / silverstripe-gearman

A basic integration with gearmand
6 stars 4 forks source link

SilverStripe Gearman module

Adds a basic level of support for the gearmand php job queue

Installation

To test the installation is correct, there's a test job you can execute

Usage

Reflected worker

The 'gearman_runner' script is bound to a single instance of SilverStripe; this means that any job spawned against the gearman server is handled and executed by that instance of SilverStripe. In situations where you have multiple instances of SS running, you will need to use the reflected_runner.php script instead of gearman_runner.php. This handler will include the path of the SS instance that triggered the gearman job to be executed, and will spawn a separate process to execute that gearman job within