企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# Class **Phalcon\Queue\Beanstalk\Job**[](# "永久链接至标题") Represents a job in a beanstalk queue ### Methods[](# "永久链接至标题") public **getId** () ... public **getBody** () ... public **__construct** ([*Phalcon\Queue\Beanstalk*](#) $queue, *string* $id, *string* $body) public **delete** () Removes a job from the server entirely public **release** ([*unknown* $priority], [*unknown* $delay]) 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. public **bury** ([*unknown* $priority]) The bury command puts a job into the “buried” state. Buried jobs are put into a FIFO linked list and will not be touched by the server again until a client kicks them with the “kick” command. public **touch** () 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). The command postpones the auto release of a reserved job until TTR seconds from when the command is issued. public **kick** () Move the job to the ready queue if it is delayed or buried. public **stats** () Get stats of the job. public **__wakeup** () Checks if the job has been modified after unserializing the object | - [索引](# "总目录") - [下一页](# "Final class Phalcon\Registry") | - [上一页](# "Class Phalcon\Queue\Beanstalk") | - [API Indice](#) »