From 2ae98d7af552a4d70b6f5230cbd9199b8d039815 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 10 Sep 2025 11:51:14 +0200 Subject: [PATCH 1/2] refs #2769. Some improvements --- src/Command/ExecutePendingTracesCommand.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Command/ExecutePendingTracesCommand.php b/src/Command/ExecutePendingTracesCommand.php index de96a1d..a0b8abe 100644 --- a/src/Command/ExecutePendingTracesCommand.php +++ b/src/Command/ExecutePendingTracesCommand.php @@ -79,6 +79,12 @@ class ExecutePendingTracesCommand extends Command foreach ($traces as $trace) { try { + $client = $trace->getClient(); + + if ($client->getStatus() === ClientStatus::BUSY) { + continue; + } + $io->info("Processing trace {$trace->getUuid()} with command: {$trace->getCommand()}"); $result = $this->executeTrace($trace); @@ -126,10 +132,6 @@ class ExecutePendingTracesCommand extends Command throw new \Exception("No client associated with trace"); } - if ($client->getStatus() === ClientStatus::BUSY) { - throw new \Exception("Client is busy"); - } - $trace->setExecutedAt(new \DateTime()); $this->entityManager->persist($trace); $this->entityManager->flush(); -- 2.40.1 From df6931349126932193154b4e172b1d7a4765d3d9 Mon Sep 17 00:00:00 2001 From: Manuel Aranda Date: Wed, 10 Sep 2025 11:51:53 +0200 Subject: [PATCH 2/2] refs #2769. Some improvements --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc7a055..4583903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Changelog +## [0.24.2] - 2025-09-10 +### Improved +- Se han realizado mejoras varias sobre la funcionalidad de tareas programadas. + +--- ## [0.24.1] - 2025-09-09 ### Fixed - Se ha corregido un error en la funcionalidad de Tareas programadas -- 2.40.1