Better create own connections

This commit is contained in:
Jeroen De Meerleer 2021-05-26 00:15:33 +02:00
parent f059418344
commit 4dd743c732
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ class DaemonCommand extends Command
$jobRepo->RunJob($job);
$jobRepo->setJobRunning($job, false);
} elseif ($pid == 0) {
$dbcon = $this->kernel->getDbCon();
$dbcon->close();
$dbcon->connect();
$jobRepo->RunJob($job);
$jobRepo->setJobRunning($job, false);
exit;