router(transfer): decrease WaitForStop timeout
This commit is contained in:
parent
14eea3b1e4
commit
6e0c095bb8
|
@ -63,10 +63,10 @@ func postServerTransfer(c *gin.Context) {
|
||||||
if s.Environment.State() != environment.ProcessOfflineState {
|
if s.Environment.State() != environment.ProcessOfflineState {
|
||||||
if err := s.Environment.WaitForStop(
|
if err := s.Environment.WaitForStop(
|
||||||
s.Context(),
|
s.Context(),
|
||||||
time.Minute,
|
time.Second*15,
|
||||||
false,
|
false,
|
||||||
); err != nil && !strings.Contains(strings.ToLower(err.Error()), "no such container") {
|
); err != nil && !strings.Contains(strings.ToLower(err.Error()), "no such container") {
|
||||||
notifyPanelOfFailure()
|
s.SetTransferring(false)
|
||||||
s.Log().WithError(err).Error("failed to stop server for transfer")
|
s.Log().WithError(err).Error("failed to stop server for transfer")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user