Beanstalk\Command\
Release
¶Extends: | Beanstalk\Command |
---|---|
Description: | Release command |
Author: | Joshua Dechant <jdechant@shapeup.com> |
The release command puts a reserved job back into the ready queue (and marks its state as “ready”) to be run by any client. It is normally used when the job fails because of a transitory error.
Class Methods
Release::__construct
– ConstructorRelease::getCommand
– Get the command to send to the beanstalkd serverRelease::parseResponse
– Parse the response for success or failure.Beanstalk\Command\Release::
__construct
($id, $priority, $delay)¶Description: | Constructor |
---|---|
Parameters: |
|
Beanstalk\Command\Release::
getCommand
()¶Description: | Get the command to send to the beanstalkd server |
---|---|
Returns: | string |
Beanstalk\Command\Release::
parseResponse
($response[, $data = null, $conn = null])¶Description: | Parse the response for success or failure. |
---|---|
Parameters: |
|
Returns: | boolean True if command was successful |
Throws: | BeanstalkException When the server runs out of memory |
Throws: | BeanstalkException When the job cannot be found or has already timed out |
Throws: | BeanstalkException When any other error occurs |