BUGFIX: Memory Limit could be too low when running daemon script
This commit is contained in:
parent
83f995c177
commit
b933b2bad0
|
@ -37,6 +37,7 @@ class DaemonCommand extends Command
|
||||||
|
|
||||||
protected function execute(InputInterface $input, OutputInterface $output) : int
|
protected function execute(InputInterface $input, OutputInterface $output) : int
|
||||||
{
|
{
|
||||||
|
ini_set('memory_limit', '4G');
|
||||||
$jobRepo = $this->doctrine->getRepository(Job::class);
|
$jobRepo = $this->doctrine->getRepository(Job::class);
|
||||||
$timelimit = $input->getOption('time-limit') ?? false;
|
$timelimit = $input->getOption('time-limit') ?? false;
|
||||||
$async = $input->getOption('async') ?? function_exists('pcntl_fork');
|
$async = $input->getOption('async') ?? function_exists('pcntl_fork');
|
||||||
|
|
Loading…
Reference in New Issue