Skip to content

Commit 50057bc

Browse files
authored
Cooldown Worker Only on Failed Processes (#1566)
1 parent d9b8a10 commit 50057bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WorkerProcess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function continue()
8686
*/
8787
public function monitor()
8888
{
89-
if ($this->process->isRunning() || $this->coolingDown()) {
89+
if ($this->process->isRunning() || ($this->coolingDown() && $this->process->getExitCode() !== 0)) {
9090
return;
9191
}
9292

0 commit comments

Comments
 (0)