Skip to content

Commit

Permalink
Merge pull request #6524 from yanggangtony/fix-log-scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-pampattiwar authored Jul 24, 2023
2 parents 605eab1 + c5af315 commit eb35f12
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/controller/schedule_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,10 @@ func (c *scheduleReconciler) checkIfBackupInNewOrProgress(schedule *velerov1.Sch

for _, backup := range backupList.Items {
if backup.Status.Phase == velerov1.BackupPhaseNew || backup.Status.Phase == velerov1.BackupPhaseInProgress {
log.Debugf("%s/%s still has backups that are in InProgress or New...", schedule.Namespace, schedule.Name)
return true
}
}

log.Debugf("Schedule %s/%s still has backups are in InProgress or New state, skip submitting backup to avoid overlap.", schedule.Namespace, schedule.Name)
return false
}

Expand Down

0 comments on commit eb35f12

Please sign in to comment.