diff --git a/app/Mod/Names/Boot.php b/app/Mod/Names/Boot.php index 0a25cc6..5c956a3 100644 --- a/app/Mod/Names/Boot.php +++ b/app/Mod/Names/Boot.php @@ -6,6 +6,7 @@ namespace Mod\Names; use Core\Events\ConsoleBooting; use Core\Events\WebRoutesRegistering; +use Illuminate\Console\Scheduling\Schedule; use Illuminate\Support\Facades\Route; use Mod\Names\Commands\RetryDnsTickets; @@ -25,5 +26,13 @@ class Boot public function onConsole(ConsoleBooting $event): void { $event->command(RetryDnsTickets::class); + + // Schedule DNS ticket retry every minute + app()->booted(function () { + app(Schedule::class)->command('names:retry-dns') + ->everyMinute() + ->withoutOverlapping() + ->runInBackground(); + }); } }