Skip to content

Commit 15512f2

Browse files
try operation refresh
1 parent b75b925 commit 15512f2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

google-cloud-storage-control/samples/storage_control_create_anywhere_cache.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ def create_anywhere_cache bucket_name:, zone:
4343

4444
puts "********************AnywhereCache operation created - #{operation.name}"
4545
while !operation.done?
46-
sleep 3600 # Wait for 1 hour before checking again
46+
sleep 1800 # Wait for 1/2 hour before checking again
4747
operation.refresh!
48+
puts "********************AnywhereCache operation refreshed"
49+
puts "********************AnywhereCache operation status check retried"
4850
end
4951
puts "********************AnywhereCache create operation completed - #{operation.name}"
5052

0 commit comments

Comments
 (0)