mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-15 23:08:11 +02:00
JobRunner: fix PHP errors
This commit is contained in:
parent
6298659c32
commit
51ebf79632
@ -25,15 +25,10 @@ class JobRunner
|
||||
if ($this->shouldFork()) {
|
||||
$this->fork($job);
|
||||
} else {
|
||||
$this->run($job);
|
||||
$job->run();
|
||||
}
|
||||
}
|
||||
|
||||
protected function run(Job $job)
|
||||
{
|
||||
$job->run();
|
||||
}
|
||||
|
||||
protected function fork(Job $job)
|
||||
{
|
||||
$cmd = 'icingacli director job run ' . $job->id;
|
||||
@ -45,7 +40,7 @@ class JobRunner
|
||||
return true;
|
||||
}
|
||||
|
||||
protected getRegisteredJobs()
|
||||
protected function getRegisteredJobs()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user