Skip to content

Commit 0f2bcd4

Browse files
author
smothiki
committed
feat(storage): remove polling for object in storage
1 parent 9d7f864 commit 0f2bcd4

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)