hardcode backup timeout to 10s
This commit is contained in:
parent
c5e596a9d5
commit
d3f16fe958
|
@ -165,7 +165,7 @@ func (w *Wrapper) Backup(c *Config) error {
|
|||
select {
|
||||
case <-busy:
|
||||
busy = nil // It's alive! continue with cmd.Wait()
|
||||
case <-time.After(3 * time.Second):
|
||||
case <-time.After(10 * time.Second):
|
||||
killErr := cmd.Process.Kill()
|
||||
return fmt.Errorf("backup output timeout, repository server down?: %w", killErr)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue