Skip to content

Commit

Permalink
Merge pull request #164 from stackkit/bugfix/reset-pcntl-alarm
Browse files Browse the repository at this point in the history
Reset pcntl alarm after handling job
  • Loading branch information
marickvantuil authored Dec 25, 2024
2 parents 9326cc2 + 4835a6a commit 50b226e
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 @@ -34,6 +34,10 @@ public function process($connectionName, $job, WorkerOptions $options): void
}

parent::process($connectionName, $job, $options);

if ($this->supportsAsyncSignals()) {
$this->resetTimeoutHandler();
}
}

public function kill($status = 0, $options = null): void
Expand Down

0 comments on commit 50b226e

Please sign in to comment.