+ $this->max_execution_margin = common_config('http', 'connect_timeout') + 1; // think PHP's max exec time, minus this value to have time for timeouts etc.
+ }
+
return parent::__construct();
}
@@ -60,7+65,7 @@ class OpportunisticQueueManager extends DBQueueManager
return false;
}
// If too much time has passed, stop
- if ($time_passed >= $this->max_execution_time) {