Skip to content

Commit da3a932

Browse files
committed
Default wait time to 60 seconds
1 parent 2048d62 commit da3a932

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GearmanManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ protected function process_loop() {
316316
}
317317

318318

319-
if ($this->stop_work && time() - $this->stop_time > $this->config["graceful_shutdown_wait_time"]) {
319+
if ($this->stop_work && time() - $this->stop_time > ($this->config["graceful_shutdown_wait_time"] ?? 60)) {
320320
$this->log("Children have not exited, killing.", GearmanManager::LOG_LEVEL_PROC_INFO);
321321
$this->stop_children(SIGKILL);
322322
} else {

0 commit comments

Comments
 (0)