Beanstalk\Command\Touch¶| Extends: | Beanstalk\Command |
|---|---|
| Description: | Touch command |
| Author: | Joshua Dechant <jdechant@shapeup.com> |
The “touch” command allows a worker to request more time to work on a job. This is useful for jobs that potentially take a long time, but you still want the benefits of a TTR pulling a job away from an unresponsive worker. A worker may periodically tell the server that it’s still alive and processing a job (e.g. it may do this on DEADLINE_SOON).
Class Methods
Touch::__construct – ConstructorTouch::getCommand – Get the command to send to the beanstalkd serverTouch::parseResponse – Parse the response for success or failure.Beanstalk\Command\Touch::__construct($id)¶| Description: | Constructor |
|---|---|
| Parameters: |
|
Beanstalk\Command\Touch::getCommand()¶| Description: | Get the command to send to the beanstalkd server |
|---|---|
| Returns: | string |
Beanstalk\Command\Touch::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 job cannot be found or has already timed out |
| Throws: | BeanstalkException When any other error occurs |