Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions perfkitbenchmarker/providers/azure/azure_flexible_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import json
import logging
import re
import time
from typing import Any, Tuple

from absl import flags
Expand Down Expand Up @@ -331,23 +330,6 @@ def SetDbConfiguration(self, name: str, value: str) -> Tuple[str, str, int]:
]
return vm_util.IssueCommand(cmd, raise_on_failure=False)

def _IsInstanceReady(self, timeout: int = IS_READY_TIMEOUT) -> bool:
"""See base class."""
start_time = datetime.datetime.now()

while True:
if (datetime.datetime.now() - start_time).seconds >= timeout:
logging.warning('Timeout waiting for sql instance to be ready')
return False

server_show_json = self._AzServerShow()
if server_show_json is not None:
state = server_show_json['state']
if state == 'Ready':
break
time.sleep(5)
return True

def _ApplyDbFlags(self) -> None:
"""Apply database flags to the instance."""
for flag in FLAGS.db_flags:
Expand Down
Loading
Loading