- Added try/catch to each CRON ran to avoid blocking others

This commit is contained in:
mcndave committed 2026-07-01 13:10:37 -04:00
1 parent 2f78a1b97d
commit 78daf88d67
2 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ use Lean\Lean;
return [
CronardMiddleware::class => function($c) {
$cronardMiddleware = new CronardMiddleware($c, getenvonce('CRON_KEY'), function() : ResponseInterface {
$cronardMiddleware = new CronardMiddleware($c, getenv('CRON_KEY'), function() : ResponseInterface {
return new HtmlResponse(sprintf("%s - cron task begin...", date('Y-m-d H:i:s')));
}, []);