We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc591cf commit bf1aeeeCopy full SHA for bf1aeee
src/Queue/Processor.php
@@ -175,7 +175,7 @@ public function run(array $args): int {
175
}
176
177
$workerLifetime = Configure::read('Queue.workerLifetime') ?? Configure::read('Queue.workermaxruntime');
178
- if ($workerLifetime === null) {
+ if ($workerLifetime === null && $config['maxruntime'] === null) {
179
throw new RuntimeException('Queue.workerLifetime (or deprecated workermaxruntime) config is required');
180
181
$maxRuntime = $config['maxruntime'] ?: (int)$workerLifetime;
0 commit comments