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); }