feat: schedule DNS ticket retry every minute via ConsoleBooting
RetryDnsTickets command now scheduled everyMinute with withoutOverlapping. Runs via supervisor scheduler in the container. Queued DNS changes retry automatically without manual intervention. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b4e4766e01
commit
9a36b836a7
1 changed files with 9 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ namespace Mod\Names;
|
||||||
|
|
||||||
use Core\Events\ConsoleBooting;
|
use Core\Events\ConsoleBooting;
|
||||||
use Core\Events\WebRoutesRegistering;
|
use Core\Events\WebRoutesRegistering;
|
||||||
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Mod\Names\Commands\RetryDnsTickets;
|
use Mod\Names\Commands\RetryDnsTickets;
|
||||||
|
|
||||||
|
|
@ -25,5 +26,13 @@ class Boot
|
||||||
public function onConsole(ConsoleBooting $event): void
|
public function onConsole(ConsoleBooting $event): void
|
||||||
{
|
{
|
||||||
$event->command(RetryDnsTickets::class);
|
$event->command(RetryDnsTickets::class);
|
||||||
|
|
||||||
|
// Schedule DNS ticket retry every minute
|
||||||
|
app()->booted(function () {
|
||||||
|
app(Schedule::class)->command('names:retry-dns')
|
||||||
|
->everyMinute()
|
||||||
|
->withoutOverlapping()
|
||||||
|
->runInBackground();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue