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>
22 lines
425 B
PHP
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,
|
|
) {}
|
|
}
|