Skip to content

Commit

Permalink
optionally set base_rpu
Browse files Browse the repository at this point in the history
  • Loading branch information
jiezhen-chen committed Apr 18, 2024
1 parent 371a92e commit edbe617
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ def cluster_dict(endpoint, is_serverless=False, start_time=None, end_time=None):
cluster["instance"] = "Serverless"
if response.get("workgroup").get("baseCapacity"):
cluster["base_rpu"] = response.get("workgroup").get("baseCapacity")
else:
cluster["base_rpu"] = "N/A"
except Exception as e:
if e.response["Error"]["Code"] == "ResourceNotFoundException":
logger.warning(
Expand Down

0 comments on commit edbe617

Please sign in to comment.