From 9677f11aef2a9068b46f37a489406c4314110c20 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Fri, 27 Jun 2025 16:56:24 -0400 Subject: [PATCH] FIX: seguir cuando existe error. --- cli/src/Service/Schedule.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/src/Service/Schedule.php b/cli/src/Service/Schedule.php index efd7ff2..c67077a 100644 --- a/cli/src/Service/Schedule.php +++ b/cli/src/Service/Schedule.php @@ -5,6 +5,7 @@ use Cron\CronExpression; use DateTimeInterface; use DateTimeImmutable; use Psr\Log\LoggerInterface; +use Throwable; class Schedule { @@ -22,7 +23,12 @@ class Schedule if (trim($line) === '' or str_starts_with('#', $line)) { continue; } - $data = $this->parseCommandLine($line); + try { + $data = $this->parseCommandLine($line); + } catch (Throwable $exception) { + $this->logger->error($exception->getMessage()); + continue; + } if ($this->processSchedule($now, $data)) { $commands[] = $data['command']; }