fix(subscription-job): enhance retry logic for VerifyStripeSubscriptionStatusJob

- Added retry configuration with a maximum of 3 attempts and backoff intervals of 10, 30, and 60 seconds to improve job resilience and handling of transient failures.
This commit is contained in:
Andras Bacsai
2025-09-23 18:17:49 +02:00
parent 1546495fbe
commit 0b885d75e3

View File

@@ -13,6 +13,10 @@ class VerifyStripeSubscriptionStatusJob implements ShouldQueue
{ {
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public int $tries = 3;
public array $backoff = [10, 30, 60];
public function __construct(public Subscription $subscription) public function __construct(public Subscription $subscription)
{ {
$this->onQueue('high'); $this->onQueue('high');