From ca325d94e78f8c3113b250ae48152bf818fa1f44 Mon Sep 17 00:00:00 2001 From: Alexander Schoonderwaldt Date: Tue, 3 Nov 2020 15:28:25 +0100 Subject: [PATCH] Fix repeated jobs --- Command/ExecuteCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Command/ExecuteCommand.php b/Command/ExecuteCommand.php index 854fcd7a..293925ef 100644 --- a/Command/ExecuteCommand.php +++ b/Command/ExecuteCommand.php @@ -249,6 +249,7 @@ private function executeCommand(ScheduledCommand $scheduledCommand, OutputInterf $this->em = $this->em->create($this->em->getConnection(), $this->em->getConfiguration()); } + $scheduledCommand = $this->em->find(ScheduledCommand::class, $scheduledCommand); $scheduledCommand->setLastReturnCode($result); $scheduledCommand->setLocked(false); $scheduledCommand->setExecuteImmediately(false);