From 17461aa21e7376fbc8ef272e7de6987e0aa72825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 12 Dec 2022 22:21:46 +0100 Subject: [PATCH] Fixed: [cronjob manager] Fix execution of one single job --- src/Bundle/ChillMainBundle/Cron/CronManager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Cron/CronManager.php b/src/Bundle/ChillMainBundle/Cron/CronManager.php index 8cef52438..20934fbdb 100644 --- a/src/Bundle/ChillMainBundle/Cron/CronManager.php +++ b/src/Bundle/ChillMainBundle/Cron/CronManager.php @@ -153,7 +153,9 @@ class CronManager implements CronManagerInterface private function runForce(string $forceJob): void { foreach ($this->jobs as $job) { - $job->run(); + if ($job->getKey() === $forceJob) { + $job->run(); + } } } }