diff --git a/src/Command/DaemonCommand.php b/src/Command/DaemonCommand.php index 5f6f4c8..d5b1ad1 100644 --- a/src/Command/DaemonCommand.php +++ b/src/Command/DaemonCommand.php @@ -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;