Skip to content

Commit 0c86cea

Browse files
committed
go-client: Don’t poll deploy after upload
We decided we no longer need to poll here. The reason we were polling was to fail the build prior to cache creation. This change, essentially allows for cache creation even if tree operations fail later, which is our fault most likely.
1 parent ebc359e commit 0c86cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/porcelain/deploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (n *Netlify) DoDeploy(ctx context.Context, options *DeployOptions, deploy *
290290
}
291291
}
292292

293-
return n.WaitForDeployComplete(ctx, deploy, options.DoneProcessingTimeout)
293+
return deploy, nil
294294
}
295295

296296
func (n *Netlify) waitForState(ctx context.Context, d *models.Deploy, timeout time.Duration, states ...string) (*models.Deploy, error) {

0 commit comments

Comments
 (0)