Skip to content

Commit 0ce1eab

Browse files
hubatishcopybara-github
authored andcommitted
Consolidate more _WaitUntilReady logic
PiperOrigin-RevId: 829634862
1 parent eeef28c commit 0ce1eab

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

perfkitbenchmarker/providers/gcp/vertex_ai.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from perfkitbenchmarker import resource
2323
from perfkitbenchmarker import sample
2424
from perfkitbenchmarker import virtual_machine
25-
from perfkitbenchmarker import vm_util
2625
from perfkitbenchmarker.providers.gcp import flags as gcp_flags
2726
from perfkitbenchmarker.providers.gcp import gcs
2827
from perfkitbenchmarker.providers.gcp import util
@@ -419,18 +418,7 @@ def _DeployModel(self):
419418
'The operations may still be underway remotely and may still succeed'
420419
in err
421420
):
422-
423-
@vm_util.Retry(
424-
poll_interval=self.POLL_INTERVAL,
425-
fuzz=0,
426-
timeout=self.READY_TIMEOUT,
427-
retryable_exceptions=(errors.Resource.RetryableCreationError,),
428-
)
429-
def WaitUntilReady():
430-
if not self._IsReady():
431-
raise errors.Resource.RetryableCreationError('Not yet ready')
432-
433-
WaitUntilReady()
421+
self._WaitUntilReady()
434422
elif 'Machine type temporarily unavailable' in err:
435423
raise errors.Benchmarks.QuotaFailure(err)
436424
else:

0 commit comments

Comments
 (0)