Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F16225485
D4977.id14244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4977.id14244.diff
View Options
diff --git a/src/app/Jobs/WalletCharge.php b/src/app/Jobs/WalletCharge.php
--- a/src/app/Jobs/WalletCharge.php
+++ b/src/app/Jobs/WalletCharge.php
@@ -15,9 +15,6 @@
use InteractsWithQueue;
use Queueable;
- /** @var int The number of seconds to wait before retrying the job. */
- public $backoff = 10;
-
/** @var int How many times retry the job if it fails. */
public $tries = 5;
@@ -39,6 +36,16 @@
$this->walletId = $walletId;
}
+ /**
+ * Number of seconds to wait before retrying the job.
+ *
+ * @return array<int, int>
+ */
+ public function backoff(): array
+ {
+ return [10, 30, 60, 120];
+ }
+
/**
* Execute the job.
*
diff --git a/src/app/Jobs/WalletCheck.php b/src/app/Jobs/WalletCheck.php
--- a/src/app/Jobs/WalletCheck.php
+++ b/src/app/Jobs/WalletCheck.php
@@ -23,9 +23,6 @@
public const THRESHOLD_BEFORE_REMINDER = 'before-reminder';
public const THRESHOLD_INITIAL = 'initial';
- /** @var int The number of seconds to wait before retrying the job. */
- public $backoff = 10;
-
/** @var int How many times retry the job if it fails. */
public $tries = 5;
@@ -51,6 +48,16 @@
$this->walletId = $walletId;
}
+ /**
+ * Number of seconds to wait before retrying the job.
+ *
+ * @return array<int, int>
+ */
+ public function backoff(): array
+ {
+ return [10, 30, 60, 120, 300];
+ }
+
/**
* Execute the job.
*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 19, 3:18 PM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9886836
Default Alt Text
D4977.id14244.diff (1 KB)
Attached To
Mode
D4977: WalletCharge/WalletCheck: Use growing backoff interval
Attached
Detach File
Event Timeline
Log In to Comment