Skip to content

Commit

Permalink
Default wait time to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlmoon committed Nov 22, 2024
1 parent 2048d62 commit da3a932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GearmanManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ protected function process_loop() {
}


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

0 comments on commit da3a932

Please sign in to comment.