From 7c915df5c72cf68406a0bae6a7c8d6f6b6d624dd Mon Sep 17 00:00:00 2001 From: Wes Copeland Date: Fri, 20 Feb 2026 07:58:12 -0500 Subject: [PATCH] feat(UnlockPlayerAchievementJob): add retries with exponential backoff --- app/Platform/Jobs/UnlockPlayerAchievementJob.php | 3 +++ app/Support/Alerts/Jobs/SendAlertWebhookJob.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Platform/Jobs/UnlockPlayerAchievementJob.php b/app/Platform/Jobs/UnlockPlayerAchievementJob.php index 28eafa4673..b16f79a76d 100644 --- a/app/Platform/Jobs/UnlockPlayerAchievementJob.php +++ b/app/Platform/Jobs/UnlockPlayerAchievementJob.php @@ -20,6 +20,9 @@ class UnlockPlayerAchievementJob implements ShouldQueue use Queueable; use SerializesModels; + public int $tries = 3; + public array $backoff = [10, 30]; + public function __construct( private readonly int $userId, private readonly int $achievementId, diff --git a/app/Support/Alerts/Jobs/SendAlertWebhookJob.php b/app/Support/Alerts/Jobs/SendAlertWebhookJob.php index 58477d3504..714bacbc60 100644 --- a/app/Support/Alerts/Jobs/SendAlertWebhookJob.php +++ b/app/Support/Alerts/Jobs/SendAlertWebhookJob.php @@ -22,7 +22,7 @@ class SendAlertWebhookJob implements ShouldQueue use SerializesModels; public int $tries = 3; - public array $backoff = [10, 30, 60]; + public array $backoff = [10, 30]; /** * Optional HTTP client for testing. Not serialized with the job.