chg: [sync] Enable garbage collector when pulling events from remote server

pull/9651/head
Jakub Onderka 2024-04-08 19:45:30 +02:00
parent a322217cbd
commit e2dbc690ac
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,10 @@ class ServerShell extends AppShell
if (!empty($this->args[4]) && $this->args[4] === 'force') {
$force = true;
}
// Try to enable garbage collector as pulling events can use a lot of memory
gc_enable();
try {
$result = $this->Server->pull($user, $technique, $server, $jobId, $force);
if (is_array($result)) {