Files
website/website/app/Events/ProvisioningFailed.php
Claude Dev edf428215f Add provisioning failure retry logic with scheduled command
Retries failed provisioning every 30 minutes with max 3 attempts,
dispatches ProvisioningFailed event when max attempts reached.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-09 20:37:09 -05:00

22 lines
425 B
PHP

<?php
declare(strict_types=1);
namespace App\Events;
use App\Models\Service;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
class ProvisioningFailed
{
use Dispatchable, SerializesModels;
public function __construct(
public Service $service,
public string $errorMessage,
public int $attemptNumber,
public bool $maxAttemptsReached,
) {}
}