This applies to laravel 5.3, beanstalk, ttr and timeouts working with Queue and QueueWorkers. TTR: https://github.com/kr/beanstalkd/wiki/faq
If I understand correctly that the job in the queue receives the state reserved when QueueWorker selects it. This job state will be returned to the state when ttr ends. But what happens to QueueWorker?
Suppose QueueWorker has a timeout set to 600 with the following command:
php artisan queue:work --tries=1 --timeout=600 --sleep=0
ttr is set to 60 seconds by default.
During the job, the request is made to another site and it takes 120 seconds to respond. After 60 seconds, the job returns to the ready state as TTR. Will QueueWorker work on the job until a response is received, maximum 600 seconds? Or will QueueWorker stop working on the task when it reaches the TTR?
source share