Skip to content

Commit

Permalink
Fix restore Job parallel execution (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
suaas21 authored and tamalsaha committed Jul 9, 2019
1 parent 94cbae1 commit 9572812
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,12 @@ func (opt *Options) runRestore(restoreSession *api_v1beta1.RestoreSession) error
}
}

//get updated RestoreSession
restoreSession, err = opt.StashClient.StashV1beta1().RestoreSessions(restoreSession.Namespace).Get(restoreSession.Name, metav1.GetOptions{})
if err != nil{
return err
}

// restore is complete. add/update an entry for this host in RestoreSession status
_, err = stash_util_v1beta1.UpdateRestoreSessionStatusForHost(opt.StashClient.StashV1beta1(), restoreSession, restoreOutput.HostRestoreStats)
if err != nil {
Expand Down

0 comments on commit 9572812

Please sign in to comment.