From f42b5a9cf57a7a215ea58958c5da5d425102c83a Mon Sep 17 00:00:00 2001 From: "ext.jeremy.guillot@maxicoffee.domains" Date: Fri, 27 Mar 2026 14:21:05 +0100 Subject: [PATCH] =?UTF-8?q?feat(monitoring):=20ajouter=20une=20commande=20?= =?UTF-8?q?console=20pour=20d=C3=A9clencher=20le=20monitoring=20manuelleme?= =?UTF-8?q?nt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Permet de tester le scheduler en prod sans attendre le cycle de 2h : make sf c="app:monitoring:run" --- src/Command/RunMonitoringCommand.php | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/Command/RunMonitoringCommand.php diff --git a/src/Command/RunMonitoringCommand.php b/src/Command/RunMonitoringCommand.php new file mode 100644 index 0000000..80c7ce0 --- /dev/null +++ b/src/Command/RunMonitoringCommand.php @@ -0,0 +1,36 @@ +writeln('Déclenchement du monitoring des mangas...'); + + $this->commandBus->dispatch(new CheckMonitoredMangas()); + + $output->writeln('Vérification lancée. Les nouveaux chapitres détectés seront scrappés via le worker commands.'); + + return Command::SUCCESS; + } +}