BUGFIX: Memory Limit could be too low when running daemon script

This commit is contained in:
Jeroen De Meerleer 2022-12-19 11:01:21 +01:00
parent 83f995c177
commit b933b2bad0
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 1 additions and 0 deletions

View File

@ -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');