[FIX] reduce the retry count

This commit is contained in:
goodrain 2018-03-08 09:35:20 +08:00
parent 528057e1fe
commit e9cea0f8c5

View File

@ -74,7 +74,7 @@ func (e *exectorManager) pluginDockerfileBuild(in []byte) {
go func() {
logrus.Info("start exec build plugin from image worker")
defer event.GetManager().ReleaseLogger(logger)
for retry := 0; retry < 3; retry++ {
for retry := 0; retry < 2; retry++ {
err := e.runD(&tb, config, logger)
if err != nil {
logrus.Errorf("exec plugin build from dockerfile error:%s", err.Error())