From 7cd98086d4bd24c2074a6b2bffe68df9e646ba0b Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Mon, 10 Jul 2017 15:40:38 +0200 Subject: [PATCH] signal alarm after timeout passes --- src/Illuminate/Queue/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index fd9721bda9e8..cfeeff6804e7 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -141,7 +141,7 @@ protected function registerTimeoutHandler($job, WorkerOptions $options) $timeout = $this->timeoutForJob($job, $options); - pcntl_alarm($timeout > 0 ? $timeout + $options->sleep : 0); + pcntl_alarm($timeout > 0 ? $timeout : 0); } }