Skip to content

Commit 6914d38

Browse files
committed
feat: transition to new runtime names
1 parent 3dd7a4c commit 6914d38

File tree

4 files changed

+23
-4
lines changed

4 files changed

+23
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ from wherobots.db.runtime import Runtime
3333

3434
with connect(
3535
api_key='...',
36-
runtime=Runtime.SEDONA,
36+
runtime=Runtime.TINY,
3737
region=Region.AWS_US_WEST_2) as conn:
3838
curr = conn.cursor()
3939
curr.execute("SHOW SCHEMAS IN wherobots_open_data")

tests/smoke.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
host=args.api_endpoint,
7272
token=token,
7373
api_key=api_key,
74-
runtime=Runtime.SEDONA,
75-
region=Region.AWS_US_WEST_2,
7674
shutdown_after_inactive_seconds=args.shutdown_after_inactive_seconds,
7775
wait_timeout=900,
7876
)

wherobots/db/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
DEFAULT_ENDPOINT: str = "api.cloud.wherobots.com" # "api.cloud.wherobots.com"
99
STAGING_ENDPOINT: str = "api.staging.wherobots.com" # "api.staging.wherobots.com"
10-
DEFAULT_RUNTIME: Runtime = Runtime.SEDONA
10+
DEFAULT_RUNTIME: Runtime = Runtime.TINY
1111
DEFAULT_REGION: Region = Region.AWS_US_WEST_2
1212
DEFAULT_READ_TIMEOUT_SECONDS: float = 0.25
1313
DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS: float = 900

wherobots/db/runtime.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,27 @@
22

33

44
class Runtime(Enum):
5+
TINY = "tiny"
6+
SMALL = "small"
7+
MEDIUM = "medium"
8+
LARGE = "large"
9+
X_LARGE = "x-large"
10+
XX_LARGE = "2x-large"
11+
XXXX_LARGE = "4x-large"
12+
13+
# HIMEM
14+
MEDIUM_HIMEM = "medium-himem"
15+
LARGE_HIMEM = "large-himem"
16+
X_LARGE_HIMEM = "x-large-himem"
17+
XX_LARGE_HIMEM = "2x-large-himem"
18+
XXXX_LARGE_HIMEM = "4x-large-himem"
19+
20+
# GPU
21+
TINY_A10_GPU = "tiny-a10-gpu"
22+
SMALL_A10_GPU = "small-a10-gpu"
23+
MEDIUM_A10_GPU = "medium-a10-gpu"
24+
25+
# Deprecated names; will be removed in a later major version.
526
SEDONA = "tiny"
627
SAN_FRANCISCO = "small"
728
NEW_YORK = "medium"

0 commit comments

Comments
 (0)