Better create own connections
This commit is contained in:
parent
f059418344
commit
4dd743c732
|
@ -55,6 +55,9 @@ class DaemonCommand extends Command
|
||||||
$jobRepo->RunJob($job);
|
$jobRepo->RunJob($job);
|
||||||
$jobRepo->setJobRunning($job, false);
|
$jobRepo->setJobRunning($job, false);
|
||||||
} elseif ($pid == 0) {
|
} elseif ($pid == 0) {
|
||||||
|
$dbcon = $this->kernel->getDbCon();
|
||||||
|
$dbcon->close();
|
||||||
|
$dbcon->connect();
|
||||||
$jobRepo->RunJob($job);
|
$jobRepo->RunJob($job);
|
||||||
$jobRepo->setJobRunning($job, false);
|
$jobRepo->setJobRunning($job, false);
|
||||||
exit;
|
exit;
|
||||||
|
|
Loading…
Reference in New Issue