runnable 0.28.2__py3-none-any.whl → 0.28.3__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- extensions/job_executor/k8s.py +10 -7
- {runnable-0.28.2.dist-info → runnable-0.28.3.dist-info}/METADATA +1 -1
- {runnable-0.28.2.dist-info → runnable-0.28.3.dist-info}/RECORD +6 -6
- {runnable-0.28.2.dist-info → runnable-0.28.3.dist-info}/WHEEL +0 -0
- {runnable-0.28.2.dist-info → runnable-0.28.3.dist-info}/entry_points.txt +0 -0
- {runnable-0.28.2.dist-info → runnable-0.28.3.dist-info}/licenses/LICENSE +0 -0
extensions/job_executor/k8s.py
CHANGED
@@ -69,6 +69,12 @@ class EnvVar(BaseModel):
|
|
69
69
|
value: str
|
70
70
|
|
71
71
|
|
72
|
+
VendorGPU = Annotated[
|
73
|
+
Optional[int],
|
74
|
+
PlainSerializer(lambda x: str(x), return_type=str, when_used="unless-none"),
|
75
|
+
]
|
76
|
+
|
77
|
+
|
72
78
|
class Request(BaseModel):
|
73
79
|
"""
|
74
80
|
The default requests
|
@@ -76,19 +82,16 @@ class Request(BaseModel):
|
|
76
82
|
|
77
83
|
memory: str = "1Gi"
|
78
84
|
cpu: str = "250m"
|
85
|
+
gpu: VendorGPU = Field(default=None, serialization_alias="nvidia.com/gpu")
|
79
86
|
|
80
87
|
|
81
|
-
|
82
|
-
Optional[int],
|
83
|
-
PlainSerializer(lambda x: str(x), return_type=str, when_used="unless-none"),
|
84
|
-
]
|
85
|
-
|
86
|
-
|
87
|
-
class Limit(Request):
|
88
|
+
class Limit(BaseModel):
|
88
89
|
"""
|
89
90
|
The default limits
|
90
91
|
"""
|
91
92
|
|
93
|
+
memory: str = "1Gi"
|
94
|
+
cpu: str = "250m"
|
92
95
|
gpu: VendorGPU = Field(default=None, serialization_alias="nvidia.com/gpu")
|
93
96
|
|
94
97
|
|
@@ -8,7 +8,7 @@ extensions/catalog/pyproject.toml,sha256=lLNxY6v04c8I5QK_zKw_E6sJTArSJRA_V-79kta
|
|
8
8
|
extensions/catalog/s3.py,sha256=Sw5t8_kVRprn3uGGJCiHn7M9zw1CLaCOFj6YErtfG0o,287
|
9
9
|
extensions/job_executor/README.md,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
extensions/job_executor/__init__.py,sha256=E2R6GV5cZTlZdqA5SVJ6ajZFh4oruM0k8AKHkpOZ3W8,5772
|
11
|
-
extensions/job_executor/k8s.py,sha256=
|
11
|
+
extensions/job_executor/k8s.py,sha256=LQSD33Q4Zdox2dt4Rr_88ahX2hWu0ZTky3IRmW5Gd54,15777
|
12
12
|
extensions/job_executor/k8s_job_spec.yaml,sha256=7aFpxHdO_p6Hkc3YxusUOuAQTD1Myu0yTPX9DrhxbOg,1158
|
13
13
|
extensions/job_executor/local.py,sha256=FvxTk0vyxdrbLOAyNkLyjvmmowypabWOSITQBK_ffVE,1907
|
14
14
|
extensions/job_executor/local_container.py,sha256=hyFnpicCp3_87mZsW64P6KSVbz7XMLjwJUWVjeCJ0_I,6627
|
@@ -56,8 +56,8 @@ runnable/sdk.py,sha256=T1nqDpLN9fULvvU9L-oY0EHqYdKUI9qk7oekLynm02Y,33568
|
|
56
56
|
runnable/secrets.py,sha256=PXcEJw-4WPzeWRLfsatcPPyr1zkqgHzdRWRcS9vvpvM,2354
|
57
57
|
runnable/tasks.py,sha256=X6xijut7ffwpfYDcXoN6y0AcRVd7fWHs676DJ00Kma4,29134
|
58
58
|
runnable/utils.py,sha256=hBr7oGwGL2VgfITlQCTz-a1iwvvf7Mfl-HY8UdENZac,19929
|
59
|
-
runnable-0.28.
|
60
|
-
runnable-0.28.
|
61
|
-
runnable-0.28.
|
62
|
-
runnable-0.28.
|
63
|
-
runnable-0.28.
|
59
|
+
runnable-0.28.3.dist-info/METADATA,sha256=Nyn4qIxAdhRHPN--RXPJTwV-0CTgkdynbDsU1j8IXrA,10047
|
60
|
+
runnable-0.28.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
61
|
+
runnable-0.28.3.dist-info/entry_points.txt,sha256=ioMbWojILtdibYVgh1jXJ00SpK-tX3gy7oVGDq61cSk,1839
|
62
|
+
runnable-0.28.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
63
|
+
runnable-0.28.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|