Skip to content

Commit 50b226e

Browse files
Merge pull request #164 from stackkit/bugfix/reset-pcntl-alarm
Reset pcntl alarm after handling job
2 parents 9326cc2 + 4835a6a commit 50b226e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Worker.php

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function process($connectionName, $job, WorkerOptions $options): void
3434
}
3535

3636
parent::process($connectionName, $job, $options);
37+
38+
if ($this->supportsAsyncSignals()) {
39+
$this->resetTimeoutHandler();
40+
}
3741
}
3842

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

0 commit comments

Comments
 (0)