mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add additiona entropy to Backoff method
This commit is contained in:
parent
4706d756ed
commit
33acfeae9e
@ -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()
|
||||
|
@ -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)];
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user