<?php
/**
 * Run every 15-30 minutes from cPanel > Cron Jobs (FR-SUP-086):
 *   php /home/USER/app/cron/notification_retry.php >> /home/USER/app/storage/logs/notifications.log 2>&1
 */
require __DIR__ . '/../app/cron_bootstrap.php';

use App\Services\NotificationService;

$summary = NotificationService::retryFailed(3);

echo date('Y-m-d H:i:s') . ' notification_retry: ' . json_encode($summary) . PHP_EOL;
