Skip to content

Commit 8df2568

Browse files
author
Sivaram Mothiki
committed
Merge pull request #292 from smothiki/poll
feat(storage): remove polling for object in storage
2 parents 9d7f864 + 0f2bcd4 commit 8df2568

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

pkg/gitreceive/build.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -226,24 +226,6 @@ func build(
226226
}
227227
log.Debug("Done")
228228

229-
log.Debug(
230-
"Polling the S3 server every %s for %s for the resultant slug at %s",
231-
conf.ObjectStorageTickDuration(),
232-
conf.ObjectStorageWaitDuration(),
233-
slugBuilderInfo.AbsoluteSlugObjectKey(),
234-
)
235-
// poll the s3 server to ensure the slug exists
236-
if !usingDockerfile {
237-
if err := storage.WaitForObject(
238-
storageDriver,
239-
slugBuilderInfo.AbsoluteSlugObjectKey(),
240-
conf.ObjectStorageTickDuration(),
241-
conf.ObjectStorageWaitDuration(),
242-
); err != nil {
243-
return fmt.Errorf("Timed out waiting for object in storage, aborting build (%s)", err)
244-
}
245-
}
246-
247229
procType := pkg.ProcessType{}
248230
if bType == buildTypeProcfile {
249231
if procType, err = getProcFile(storageDriver, tmpDir, slugBuilderInfo.AbsoluteProcfileKey()); err != nil {

0 commit comments

Comments
 (0)