Merge pull request #6846 from coollabsio/andrasbacsai/backup-log-lazy-init
refactor(backup): make backup_log_uuid initialization lazy
This commit is contained in:
commit
88bbf14b92
1 changed files with 1 additions and 2 deletions
|
|
@ -69,13 +69,12 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
|
|||
|
||||
public $timeout = 3600;
|
||||
|
||||
public string $backup_log_uuid;
|
||||
public ?string $backup_log_uuid = null;
|
||||
|
||||
public function __construct(public ScheduledDatabaseBackup $backup)
|
||||
{
|
||||
$this->onQueue('high');
|
||||
$this->timeout = $backup->timeout;
|
||||
$this->backup_log_uuid = (string) new Cuid2;
|
||||
}
|
||||
|
||||
public function handle(): void
|
||||
|
|
|
|||
Loading…
Reference in a new issue