Skip to content

Commit

Permalink
Merge pull request #165 from stackkit/bugfix/reset-pcntl-alarm
Browse files Browse the repository at this point in the history
Reset pcntl alarm when application is killed too
  • Loading branch information
marickvantuil authored Dec 25, 2024
2 parents 50b226e + 828880c commit 004ba1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 004ba1c

Please sign in to comment.