diff --git a/src/Worker.php b/src/Worker.php index 2b88585..e406902 100644 --- a/src/Worker.php +++ b/src/Worker.php @@ -42,6 +42,10 @@ public function process($connectionName, $job, WorkerOptions $options): void public function kill($status = 0, $options = null): void { + if ($this->supportsAsyncSignals()) { + $this->resetTimeoutHandler(); + } + parent::stop($status, $options); // When running tests, we cannot run exit because it will kill the PHPunit process.