Ibuildings Gearman Magento Model Observer
Located in /Queue.php (line 17)
Mage_Core_Model_Abstract | --Ibuildings_Gearman_Model_Queue
Just calls setGearmanClient() for default instantiation
Calls a Gearman task and waits for it's return value
Check the status of a previously submitted job
Check whether a previously submitted job has completed
Send the job to the queue specified
Returns the current client object used for dispatching messages
You should not have to use this method, and it is meant for testing
Returns the current job status
Turns the status array from Gearman into a meaningful status to report back to the client
Sets the Gearman object according to config options
Reads the server details from config and creates the GearmanClient object and connects to the queue server. There is an optional 'type' key, which can be used to force the type of client used. This was introduced for testing purposes and should be used with caution as Net_Gearman & Gearman extension queues cannot be used interchangeably.
Also, I have not seen this documented anywhere, but it seems that the addServer/s() method does not perform host lookup and must have a dotted-quad IP sent for it to be able to connect to the job server.
Documentation generated on Wed, 01 Dec 2010 13:24:05 +0000 by phpDocumentor 1.4.3