Skip to content

Commit

Permalink
Feature: Create Instance 添加 409 重试机制并优化错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
dingxin-tech committed Dec 31, 2024
1 parent 91b17a3 commit d9a8ee7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions odps/instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ func (instances *Instances) CreateTask(projectName string, task Task, createInst
retryAfterInt = 5
}
time.Sleep(time.Second * time.Duration(retryAfterInt))
} else {
time.Sleep(time.Second * 5)
}
continue
}
Expand Down

0 comments on commit d9a8ee7

Please sign in to comment.