From 030d73cf77cd87239077543231b23bfd30d9aa3f Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Tue, 7 May 2024 17:40:36 +0300 Subject: [PATCH] Update ProcessHostingSubscriptionBackup.php --- web/app/Jobs/ProcessHostingSubscriptionBackup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/Jobs/ProcessHostingSubscriptionBackup.php b/web/app/Jobs/ProcessHostingSubscriptionBackup.php index 1b8afa5..d1951a5 100644 --- a/web/app/Jobs/ProcessHostingSubscriptionBackup.php +++ b/web/app/Jobs/ProcessHostingSubscriptionBackup.php @@ -48,6 +48,10 @@ class ProcessHostingSubscriptionBackup implements ShouldQueue $backupDone = true; break; } + if ($findHostingSubscriptionBackup->status == BackupStatus::Failed) { + echo "Backup failed\n"; + break; + } sleep(4); }