refactor(DatabaseBackupJob): remove retry attempts and backoff logic for job execution
This commit is contained in:
parent
644df223dc
commit
49a3bb0daf
1 changed files with 0 additions and 16 deletions
|
|
@ -32,14 +32,6 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
||||||
|
|
||||||
/**
|
|
||||||
* The number of times the job may be attempted.
|
|
||||||
*/
|
|
||||||
public $tries = 2;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The maximum number of unhandled exceptions to allow before failing.
|
|
||||||
*/
|
|
||||||
public $maxExceptions = 1;
|
public $maxExceptions = 1;
|
||||||
|
|
||||||
public ?Team $team = null;
|
public ?Team $team = null;
|
||||||
|
|
@ -670,14 +662,6 @@ private function getFullImageName(): string
|
||||||
return "{$helperImage}:{$latestVersion}";
|
return "{$helperImage}:{$latestVersion}";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Calculate the number of seconds to wait before retrying the job.
|
|
||||||
*/
|
|
||||||
public function backoff(): array
|
|
||||||
{
|
|
||||||
return [60, 300]; // 1min, 5min between retries
|
|
||||||
}
|
|
||||||
|
|
||||||
public function failed(?Throwable $exception): void
|
public function failed(?Throwable $exception): void
|
||||||
{
|
{
|
||||||
Log::channel('scheduled-errors')->error('DatabaseBackup permanently failed', [
|
Log::channel('scheduled-errors')->error('DatabaseBackup permanently failed', [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue