Fixed: [cronjob manager] Fix execution of one single job

This commit is contained in:
2022-12-12 22:21:46 +01:00
parent 7d469df62a
commit 17461aa21e

View File

@@ -153,7 +153,9 @@ class CronManager implements CronManagerInterface
private function runForce(string $forceJob): void private function runForce(string $forceJob): void
{ {
foreach ($this->jobs as $job) { foreach ($this->jobs as $job) {
if ($job->getKey() === $forceJob) {
$job->run(); $job->run();
} }
} }
}
} }