daemon()
daemon(string $queue = null, integer $delay, integer $memory = 128, integer $sleep = 3, integer $maxTries) : array
启动一个守护进程执行任务.
Parameters
string | $queue | |
integer | $delay | |
integer | $memory | |
integer | $sleep | |
integer | $maxTries |
process(\think\queue\Job $job, integer $maxTries, integer $delay) : array
Process a given job from the queue.
\think\queue\Job | $job | |
integer | $maxTries | |
integer | $delay |