Skip to content

Commit

Permalink
Default to 0 timeout, timeouts actually break gearman
Browse files Browse the repository at this point in the history
  • Loading branch information
Bellardia committed Aug 1, 2021
1 parent 65c5ab3 commit 9c54077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GearmanPeclManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function start_lib_worker($worker_list, $timeouts = array()) {
}

foreach($worker_list as $w){
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : 120);
$timeout = (isset($timeouts[$w]) ? $timeouts[$w] : 0);
$this->log("Adding job $w ; timeout: " . $timeout, GearmanManager::LOG_LEVEL_WORKER_INFO);
$thisWorker->addFunction($w, array($this, "do_job"), $this, $timeout);
}
Expand Down

0 comments on commit 9c54077

Please sign in to comment.