Add additiona entropy to Backoff method

This commit is contained in:
David Bomba 2023-05-20 11:06:14 +10:00
parent 4706d756ed
commit 33acfeae9e
3 changed files with 8 additions and 3 deletions

View File

@ -72,7 +72,9 @@ class NinjaMailerJob implements ShouldQueue
public function backoff()
{
return [5, 10, 30, 240];
// return [5, 10, 30, 240];
return [rand(5, 10), rand(30, 40), rand(60, 79), rand(160, 400)];
}
public function handle()

View File

@ -63,7 +63,9 @@ class WebhookSingle implements ShouldQueue
public function backoff()
{
return [15, 35, 65, 185, 3605];
// return [15, 35, 65, 185, 3605];
return [rand(10, 15), rand(30, 40), rand(60, 79), rand(160, 200), rand(3000, 5000)];
}
/**

View File

@ -75,7 +75,8 @@ class Email implements ShouldQueue
*/
public function backoff()
{
return [10, 30, 60, 240];
// return [10, 30, 60, 240];
return [rand(5, 10), rand(30, 40), rand(60, 79), rand(160, 400)];
}
public function handle()