develop #61

Merged
maranda merged 3 commits from develop into main 2025-09-10 11:53:04 +02:00
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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();