File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ from wherobots.db.runtime import Runtime
33
33
34
34
with connect(
35
35
api_key = ' ...' ,
36
- runtime = Runtime.SEDONA ,
36
+ runtime = Runtime.TINY ,
37
37
region = Region.AWS_US_WEST_2 ) as conn:
38
38
curr = conn.cursor()
39
39
curr.execute(" SHOW SCHEMAS IN wherobots_open_data" )
Original file line number Diff line number Diff line change 71
71
host = args .api_endpoint ,
72
72
token = token ,
73
73
api_key = api_key ,
74
- runtime = Runtime .SEDONA ,
75
- region = Region .AWS_US_WEST_2 ,
76
74
shutdown_after_inactive_seconds = args .shutdown_after_inactive_seconds ,
77
75
wait_timeout = 900 ,
78
76
)
Original file line number Diff line number Diff line change 7
7
8
8
DEFAULT_ENDPOINT : str = "api.cloud.wherobots.com" # "api.cloud.wherobots.com"
9
9
STAGING_ENDPOINT : str = "api.staging.wherobots.com" # "api.staging.wherobots.com"
10
- DEFAULT_RUNTIME : Runtime = Runtime .SEDONA
10
+ DEFAULT_RUNTIME : Runtime = Runtime .TINY
11
11
DEFAULT_REGION : Region = Region .AWS_US_WEST_2
12
12
DEFAULT_READ_TIMEOUT_SECONDS : float = 0.25
13
13
DEFAULT_SESSION_WAIT_TIMEOUT_SECONDS : float = 900
Original file line number Diff line number Diff line change 2
2
3
3
4
4
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.
5
26
SEDONA = "tiny"
6
27
SAN_FRANCISCO = "small"
7
28
NEW_YORK = "medium"
You can’t perform that action at this time.
0 commit comments