mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #25783 from tonistiigi/fix-retry
Fix retry logic for out of sequence errors
This commit is contained in:
commit
10a3a269a0
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,7 @@ func (d *SwarmDaemon) cmdRetryOutOfSequence(args ...string) (string, error) {
|
||||||
for i := 0; ; i++ {
|
for i := 0; ; i++ {
|
||||||
out, err := d.Cmd(args...)
|
out, err := d.Cmd(args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if strings.Contains(err.Error(), "update out of sequence") {
|
if strings.Contains(out, "update out of sequence") {
|
||||||
if i < 10 {
|
if i < 10 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue