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:
parent
1546495fbe
commit
0b885d75e3
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,10 @@ class VerifyStripeSubscriptionStatusJob implements ShouldQueue
|
|||
{
|
||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||
|
||||
public int $tries = 3;
|
||||
|
||||
public array $backoff = [10, 30, 60];
|
||||
|
||||
public function __construct(public Subscription $subscription)
|
||||
{
|
||||
$this->onQueue('high');
|
||||
|
|
|
|||
Loading…
Reference in a new issue