Skip to content

Commit

Permalink
longer wait after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ErykKul committed Mar 7, 2023
1 parent 2362879 commit 38241cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image/app/core/persisting.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,16 @@ func doPersistNodeMap(ctx context.Context, streams map[string]types.Stream, in J
var nm map[string]tree.Node
fileFound := false
written := tree.Node{}
sleep := 2
for i := 0; !fileFound && i < 5; i++ {
nm, err = Destination.Query(ctx, persistentId, dataverseKey, user)
if err != nil {
return
}
written, fileFound = nm[k]
if !fileFound {
time.Sleep(time.Second)
time.Sleep(time.Duration(sleep * int(time.Second)))
sleep = sleep * 2
}
}
if !fileFound {
Expand Down

0 comments on commit 38241cb

Please sign in to comment.