refactor(DatabaseBackupJob): remove retry attempts and backoff logic for job execution

This commit is contained in:
Andras Bacsai 2025-11-11 15:39:01 +01:00
parent 644df223dc
commit 49a3bb0daf

View file

@ -32,14 +32,6 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
{
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 ?Team $team = null;
@ -670,14 +662,6 @@ private function getFullImageName(): string
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
{
Log::channel('scheduled-errors')->error('DatabaseBackup permanently failed', [