File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package cmds
3
3
import (
4
4
"time"
5
5
6
- "github.com/appscode/go/log"
7
6
"github.com/golang/glog"
8
7
"github.com/spf13/cobra"
9
8
"k8s.io/client-go/kubernetes"
@@ -52,9 +51,8 @@ func NewCmdRunBackup() *cobra.Command {
52
51
con .Recorder = eventer .NewEventRecorder (con .K8sClient , backup .BackupEventComponent )
53
52
con .Metrics .JobName = con .BackupConfigurationName
54
53
if err = con .RunBackup (); err != nil {
55
- log .Errorln ("failed to complete backup. Reason: " , err )
56
- //set BackupSession status "Failed", write event and prometheus metrics
57
- return con .HandleBackupFailure (err )
54
+ // send setup failure metrics and fail the container so it restart to re-try
55
+ con .HandleBackupSetupFailure (err )
58
56
}
59
57
return nil
60
58
},
You can’t perform that action at this time.
0 commit comments