From b933b2bad08e6e363192716b10fe602e0666068a Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 19 Dec 2022 11:01:21 +0100 Subject: [PATCH] BUGFIX: Memory Limit could be too low when running daemon script --- src/Command/DaemonCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index 2b4ed73..287019b 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -37,6 +37,7 @@ class DaemonCommand extends Command protected function execute(InputInterface $input, OutputInterface $output) : int { + ini_set('memory_limit', '4G'); $jobRepo = $this->doctrine->getRepository(Job::class); $timelimit = $input->getOption('time-limit') ?? false; $async = $input->getOption('async') ?? function_exists('pcntl_fork');