Skip to content

Commit 17f311a

Browse files
committed
Disable GC on exit
1 parent 4c6e110 commit 17f311a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Shell/QueueShell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ public function runworker(): void
206206
$this->_exit = true;
207207
$this->out(__d('queue', 'Reached runtime of ' . (time() - $startTime) . ' Seconds (Max ' . Configure::readOrFail('Queue.workerMaxRuntime') . '), terminating.'));
208208
}
209-
if ($this->_exit || mt_rand(0, 100) > (100 - Config::gcprob())) {
209+
if (mt_rand(0, 100) > (100 - Config::gcprob())) {
210210
$this->out(__d('queue', 'Performing old job cleanup.'));
211211
$this->QueuedTasks->cleanOldJobs($this->_getTaskConf());
212212
}

0 commit comments

Comments
 (0)