yellowdog-sdk 8.1.8__py3-none-any.whl → 8.1.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- yellowdog_client/_version.py +1 -1
- yellowdog_client/scheduler/work_client_impl.py +5 -6
- yellowdog_client/scheduler/work_service_proxy.py +4 -2
- {yellowdog_sdk-8.1.8.dist-info → yellowdog_sdk-8.1.9.dist-info}/METADATA +1 -1
- {yellowdog_sdk-8.1.8.dist-info → yellowdog_sdk-8.1.9.dist-info}/RECORD +8 -8
- {yellowdog_sdk-8.1.8.dist-info → yellowdog_sdk-8.1.9.dist-info}/WHEEL +1 -1
- {yellowdog_sdk-8.1.8.dist-info → yellowdog_sdk-8.1.9.dist-info}/LICENSE +0 -0
- {yellowdog_sdk-8.1.8.dist-info → yellowdog_sdk-8.1.9.dist-info}/top_level.txt +0 -0
yellowdog_client/_version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
__version__ = '8.1.
|
|
2
|
+
__version__ = '8.1.9' # YEL-12856
|
|
@@ -73,16 +73,15 @@ class WorkClientImpl(WorkClient):
|
|
|
73
73
|
return self.__service_proxy.transition_work_requirement(work_requirement_id, WorkRequirementStatus.CANCELLING)
|
|
74
74
|
|
|
75
75
|
def find_all_work_requirements(self) -> List[WorkRequirementSummary]:
|
|
76
|
-
|
|
76
|
+
search = WorkRequirementSearch()
|
|
77
|
+
return paginate(lambda sr: self._get_work_requirements_slice(search, sr))
|
|
77
78
|
|
|
78
79
|
def get_work_requirements(self, search: WorkRequirementSearch) -> SearchClient[WorkRequirementSummary]:
|
|
79
|
-
get_next_slice_function:
|
|
80
|
-
lambda slice_reference: self.get_work_requirements_slice(search, slice_reference)
|
|
81
|
-
|
|
80
|
+
get_next_slice_function = lambda slice_reference: self._get_work_requirements_slice(search, slice_reference)
|
|
82
81
|
return SearchClient(get_next_slice_function)
|
|
83
82
|
|
|
84
|
-
def
|
|
85
|
-
return self.__service_proxy.
|
|
83
|
+
def _get_work_requirements_slice(self, search: WorkRequirementSearch, slice_reference: SliceReference) -> Slice[WorkRequirementSummary]:
|
|
84
|
+
return self.__service_proxy.find_work_requirements(search, slice_reference)
|
|
86
85
|
|
|
87
86
|
def add_work_requirement_listener(self, work_requirement: WorkRequirement, listener: SubscriptionEventListener[WorkRequirement]) -> None:
|
|
88
87
|
self._check_has_id(work_requirement)
|
|
@@ -28,8 +28,10 @@ class WorkServiceProxy:
|
|
|
28
28
|
url = "requirements/%s/transition/%s" % (requirement_id, str(next_status))
|
|
29
29
|
return self._proxy.put(WorkRequirement, url=url)
|
|
30
30
|
|
|
31
|
-
def find_work_requirements(self, search: WorkRequirementSearch, slice_reference: SliceReference) ->
|
|
32
|
-
|
|
31
|
+
def find_work_requirements(self, search: WorkRequirementSearch, slice_reference: SliceReference) -> Slice[WorkRequirementSummary]:
|
|
32
|
+
params = self._proxy.to_params(search, slice_reference)
|
|
33
|
+
params["sliced"] = "true"
|
|
34
|
+
return self._proxy.get(Slice[WorkRequirementSummary], "requirements", params)
|
|
33
35
|
|
|
34
36
|
def stream_work_requirement_updates(self, requirement_id: str):
|
|
35
37
|
return self._proxy.stream(f"requirements/{requirement_id}/updates")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
yellowdog_client/__init__.py,sha256=xHGTw5UbjkeEl_hC8_gJCacfji6462qJWD1nvJdFssE,13162
|
|
3
|
-
yellowdog_client/_version.py,sha256=
|
|
3
|
+
yellowdog_client/_version.py,sha256=7oZ5haqHFA1WNA5I-pSeMOkupCNRF0JDvfTxfBHZmoQ,35
|
|
4
4
|
yellowdog_client/client_collection.py,sha256=VSEzjf6iR1qCQ0YGLyDq_Kgvw8r832QDwTp6-MLB4Vs,388
|
|
5
5
|
yellowdog_client/platform_client.py,sha256=h_9sd35e0GMdVGjSjG0KGcG3w1qLGY1Vf1U1gSor-HE,7052
|
|
6
6
|
yellowdog_client/account/__init__.py,sha256=wx5GbsoODMdXbOmRoNZu5VYgDJX-RqsFb9ph14HXoV4,235
|
|
@@ -425,9 +425,9 @@ yellowdog_client/scheduler/__init__.py,sha256=ZORtc_LUBoTcplpoDhCHZNannI3qjeohgh
|
|
|
425
425
|
yellowdog_client/scheduler/predicated_work_subscription_event_listener.py,sha256=mLfaVRmIMtQbj9u6d8O_B-VaZxOy5l1kuGCfTsS_xPU,2056
|
|
426
426
|
yellowdog_client/scheduler/predicated_worker_pool_subscription_event_listener.py,sha256=z7tCniTF8WL6HSV7QcMOWFvC9EGSRopBGLODFOQinTA,2080
|
|
427
427
|
yellowdog_client/scheduler/work_client.py,sha256=Z0bz-SvjMiTDQ-fhGW3dSHTQrgipORJqPpDRDYiw98g,12792
|
|
428
|
-
yellowdog_client/scheduler/work_client_impl.py,sha256=
|
|
428
|
+
yellowdog_client/scheduler/work_client_impl.py,sha256=Pi8r7A8nvi6NUZUHlXXyV1IMxi3H4SaBNjvV1oHM3FU,7273
|
|
429
429
|
yellowdog_client/scheduler/work_requirement_helper.py,sha256=vQMoI9emTMKLLmZSil3IGNUtxUl50MFuITJTv5Okvlo,4167
|
|
430
|
-
yellowdog_client/scheduler/work_service_proxy.py,sha256=
|
|
430
|
+
yellowdog_client/scheduler/work_service_proxy.py,sha256=ds0qiYHiOq9hdInjt1ynWE4GtifZlJEeh5HVDbKtTGc,2920
|
|
431
431
|
yellowdog_client/scheduler/worker_pool_client.py,sha256=CDJKKpAy91VNn8udCQ5gFO4FSm-vqj8tZ7KbM-4Grc4,15021
|
|
432
432
|
yellowdog_client/scheduler/worker_pool_client_impl.py,sha256=dSuPBDMioNz4DUa-YuJ9o4see2QV4NwPNMnV9OBni6Y,8371
|
|
433
433
|
yellowdog_client/scheduler/worker_pool_helper.py,sha256=TZWm4x5S4atmjvZjgt7xhx8hcsnGI087WJrqllJDK-U,1340
|
|
@@ -436,8 +436,8 @@ yellowdog_client/usage/__init__.py,sha256=XQwRJqTdxKZa1QUTsxBEL0TqQJeQHGyPklFeqc
|
|
|
436
436
|
yellowdog_client/usage/allowances_client.py,sha256=H6n63jXjT4OwuWJgFUXSjSmvGTZz9uspy3kj3upinaA,1337
|
|
437
437
|
yellowdog_client/usage/allowances_client_impl.py,sha256=nQPnSzJKhL3WvyCn5fmiDkwE84xZryH9YvV5Z1GjU4M,2061
|
|
438
438
|
yellowdog_client/usage/allowances_service_proxy.py,sha256=uO6LWnpjIzUcZTGdOxPXn7SyYX7NMRqO5KUiHUGr490,1320
|
|
439
|
-
yellowdog_sdk-8.1.
|
|
440
|
-
yellowdog_sdk-8.1.
|
|
441
|
-
yellowdog_sdk-8.1.
|
|
442
|
-
yellowdog_sdk-8.1.
|
|
443
|
-
yellowdog_sdk-8.1.
|
|
439
|
+
yellowdog_sdk-8.1.9.dist-info/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
440
|
+
yellowdog_sdk-8.1.9.dist-info/METADATA,sha256=-58o2-n0D2AxPqTCsT_FfE7f-SN5-2EB1mreVZBC5s4,3044
|
|
441
|
+
yellowdog_sdk-8.1.9.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
|
|
442
|
+
yellowdog_sdk-8.1.9.dist-info/top_level.txt,sha256=6PH16DcoqpYHhQ5A0UJOjf0tg-1rTrNC9C2CLqCMuFo,26
|
|
443
|
+
yellowdog_sdk-8.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|