esd-services-api-client 2.6.1a149.dev18__py3-none-any.whl → 2.6.2a150.dev14__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.
- esd_services_api_client/_version.py +1 -1
- esd_services_api_client/beast/v3/_connector.py +1 -0
- esd_services_api_client/crystal/_connector.py +1 -0
- esd_services_api_client/nexus/abstractions/logger_factory.py +0 -2
- esd_services_api_client/nexus/algorithms/_remote_algorithm.py +1 -0
- esd_services_api_client/nexus/core/app_core.py +11 -1
- esd_services_api_client/nexus/input/payload_reader.py +10 -2
- esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py +1 -0
- {esd_services_api_client-2.6.1a149.dev18.dist-info → esd_services_api_client-2.6.2a150.dev14.dist-info}/METADATA +1 -1
- {esd_services_api_client-2.6.1a149.dev18.dist-info → esd_services_api_client-2.6.2a150.dev14.dist-info}/RECORD +12 -12
- {esd_services_api_client-2.6.1a149.dev18.dist-info → esd_services_api_client-2.6.2a150.dev14.dist-info}/WHEEL +1 -1
- {esd_services_api_client-2.6.1a149.dev18.dist-info → esd_services_api_client-2.6.2a150.dev14.dist-info}/LICENSE +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = 'v2.6.
|
1
|
+
__version__ = 'v2.6.2a150.dev14'
|
@@ -220,6 +220,7 @@ class BeastConnector:
|
|
220
220
|
f"Execution failed, please find request's log at: {self.base_url}/job/logs/{request_id}"
|
221
221
|
)
|
222
222
|
|
223
|
+
# pylint: disable=too-many-positional-arguments
|
223
224
|
@staticmethod
|
224
225
|
def _report_backoff_failure(
|
225
226
|
target: Any, args: Any, kwargs: Any, tries: int, elapsed: int, wait: int, **_
|
@@ -215,6 +215,11 @@ class Nexus:
|
|
215
215
|
| None = None,
|
216
216
|
delimiter: str = ", ",
|
217
217
|
) -> "Nexus":
|
218
|
+
"""
|
219
|
+
Adds a log `tagger` and a log `enricher` to be used with injected logger.
|
220
|
+
A log `tagger` will add key-value tags to each emitted log message, and those tags can be inferred from the payload and entrypoint arguments.
|
221
|
+
A log `enricher` will add additional static templated content to log messages, and render those templates using payload properties entrypoint argyments.
|
222
|
+
"""
|
218
223
|
self._log_tagger = tagger
|
219
224
|
self._log_enricher = enricher
|
220
225
|
self._log_enrichment_delimiter = delimiter
|
@@ -323,7 +328,9 @@ class Nexus:
|
|
323
328
|
if not self._log_enricher
|
324
329
|
else self._log_enricher(payload, self._run_args),
|
325
330
|
fixed_template_delimiter=self._log_enrichment_delimiter,
|
326
|
-
global_tags=self._log_tagger(payload, self._run_args)
|
331
|
+
global_tags=self._log_tagger(payload, self._run_args)
|
332
|
+
if self._log_tagger
|
333
|
+
else None,
|
327
334
|
)
|
328
335
|
# bind app-level LoggerFactory now
|
329
336
|
self._injector.binder.bind(
|
@@ -418,6 +425,9 @@ class Nexus:
|
|
418
425
|
|
419
426
|
root_logger.stop()
|
420
427
|
|
428
|
+
if os.getenv("NEXUS__RAISE_ERROR_ON_COMPLETE") and ex is not None:
|
429
|
+
raise ex
|
430
|
+
|
421
431
|
@classmethod
|
422
432
|
def create(cls) -> "Nexus":
|
423
433
|
"""
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"""
|
2
2
|
Code infrastructure for manipulating payload received from Crystal SAS URI
|
3
3
|
"""
|
4
|
+
import os
|
4
5
|
|
5
6
|
# Copyright (c) 2023-2024. ECCO Sneaks & Data
|
6
7
|
#
|
@@ -62,8 +63,15 @@ class AlgorithmPayloadReader:
|
|
62
63
|
self._http.close()
|
63
64
|
self._http = None
|
64
65
|
|
65
|
-
def __init__(
|
66
|
-
self
|
66
|
+
def __init__(
|
67
|
+
self,
|
68
|
+
payload_uri: str,
|
69
|
+
payload_type: Type[AlgorithmPayload],
|
70
|
+
):
|
71
|
+
self._http = session_with_retries(
|
72
|
+
file_protocol_supported=os.getenv("NEXUS__SUPPORT_FILE_PROTOCOL_PAYLOADS")
|
73
|
+
is not None
|
74
|
+
)
|
67
75
|
self._payload: Optional[AlgorithmPayload] = None
|
68
76
|
self._payload_uri = payload_uri
|
69
77
|
self._payload_type = payload_type
|
@@ -1,8 +1,8 @@
|
|
1
1
|
esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
|
2
|
-
esd_services_api_client/_version.py,sha256=
|
2
|
+
esd_services_api_client/_version.py,sha256=dp54ec8qgzKaNtVemStWxDL5MRflL3HL4ABk2bS9_B4,33
|
3
3
|
esd_services_api_client/beast/__init__.py,sha256=zNhXcHSP5w4P9quM1XP4oXVJEccvC_VScG41TZ0GzZ8,723
|
4
4
|
esd_services_api_client/beast/v3/__init__.py,sha256=FtumtInoDyCCRE424Llqv8QZLRuwXzj-smyfu1od1nc,754
|
5
|
-
esd_services_api_client/beast/v3/_connector.py,sha256=
|
5
|
+
esd_services_api_client/beast/v3/_connector.py,sha256=46XQdUIQVnWfs_Fn8soKeL59IryT5hnEYFYJdKSmFUY,11531
|
6
6
|
esd_services_api_client/beast/v3/_models.py,sha256=UyBAEtJhDtF_qPE6TB9QWoffvNk1nY-AXm9bMTVBT2U,6766
|
7
7
|
esd_services_api_client/boxer/README.md,sha256=-MAhYUPvmEMcgx_lo_2PlH_gZI1lndGv8fnDQYIpurU,3618
|
8
8
|
esd_services_api_client/boxer/__init__.py,sha256=yDEcfL-9q0H91UWr-al-1iMJtVLv-oIXky6hUmFZs0g,785
|
@@ -13,19 +13,19 @@ esd_services_api_client/boxer/_models.py,sha256=ursQIR_c9jcVfRKc0LH1OuVL2KFD6kqo
|
|
13
13
|
esd_services_api_client/common/__init__.py,sha256=L-cEW1mVbnTJLCLG5V6Ucw7zBgx1zf0t1bYcQC1heyw,603
|
14
14
|
esd_services_api_client/crystal/__init__.py,sha256=oeyJjdQ9EpTnIq6XnjPq5v0DWPdHqi4uEfRIcD1mNZA,792
|
15
15
|
esd_services_api_client/crystal/_api_versions.py,sha256=GHbmV_5lP9fP72TZE0j_ZeQSeJjMRcRaBRxNJbz-MWQ,837
|
16
|
-
esd_services_api_client/crystal/_connector.py,sha256=
|
16
|
+
esd_services_api_client/crystal/_connector.py,sha256=46D6VBRLgz2Y1mm95Q8m4L7SJNYHzTKtzTVVtECuXrA,13162
|
17
17
|
esd_services_api_client/crystal/_models.py,sha256=j8SEbwp_iAKjn06i-0f8npmhQhs2YJlmQ3eHwc2TwQE,4366
|
18
18
|
esd_services_api_client/nexus/README.md,sha256=hNFV_fzAGrG6_1yXE3o_GuLTKIWEia2FfedMh-Sg0ew,10619
|
19
19
|
esd_services_api_client/nexus/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
20
20
|
esd_services_api_client/nexus/abstractions/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
21
21
|
esd_services_api_client/nexus/abstractions/algrorithm_cache.py,sha256=6GevJJ7mf1c_PImhKQ_4_6n652VyHlgK_12LNidirxs,3644
|
22
22
|
esd_services_api_client/nexus/abstractions/input_object.py,sha256=RUKnhekuZwd_RVvnLGAxHa4wYDFJf6wEwWQI9f-o0lM,1761
|
23
|
-
esd_services_api_client/nexus/abstractions/logger_factory.py,sha256=
|
23
|
+
esd_services_api_client/nexus/abstractions/logger_factory.py,sha256=oJStrOPir8J18E3ALhUTCQrj3rbjo2yuYrnjpDwLQg8,3947
|
24
24
|
esd_services_api_client/nexus/abstractions/nexus_object.py,sha256=rLE42imCVGE6Px4Yu6X6C4b69gA1grK-7Md_SuCLN2Q,3115
|
25
25
|
esd_services_api_client/nexus/abstractions/socket_provider.py,sha256=Rwa_aPErI4Es5AdyCd3EoGze7mg2D70u8kuc2UGEBaI,1729
|
26
26
|
esd_services_api_client/nexus/algorithms/__init__.py,sha256=v4rPDf36r6AaHi_3K8isBKYU_fG8ct3w14KpUg2XRgg,976
|
27
27
|
esd_services_api_client/nexus/algorithms/_baseline_algorithm.py,sha256=KUBkfDKIuxfa7IcVKau10ZZLIwrLbvVkNHjuIGkdjlQ,2947
|
28
|
-
esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=
|
28
|
+
esd_services_api_client/nexus/algorithms/_remote_algorithm.py,sha256=6aCxuR6Hiu2ScrC4O18nRbecAoKITtYAsWzUzY0vp0E,4014
|
29
29
|
esd_services_api_client/nexus/algorithms/distributed.py,sha256=vkKSCsd480RKwrtu3uZ2iU1bh593fkgBcOBrcb9cLjA,1702
|
30
30
|
esd_services_api_client/nexus/algorithms/forked_algorithm.py,sha256=VLKKNJvTa5rNjRFWCMk5w0ZZ8-4JoNegY7ldvVzMGDo,5873
|
31
31
|
esd_services_api_client/nexus/algorithms/minimalistic.py,sha256=tSYXodIW-_Aje-_ZyYUoWAThcZIeE4_kMvMINsT4Lb8,1644
|
@@ -33,7 +33,7 @@ esd_services_api_client/nexus/algorithms/recursive.py,sha256=uaCCl4q-st_KqbcmkdO
|
|
33
33
|
esd_services_api_client/nexus/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
34
|
esd_services_api_client/nexus/configurations/algorithm_configuration.py,sha256=eE7diX2PATCGkmqhvFOcZwXrr6vns4fqnJGmgNvhhZM,1091
|
35
35
|
esd_services_api_client/nexus/core/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
|
36
|
-
esd_services_api_client/nexus/core/app_core.py,sha256=
|
36
|
+
esd_services_api_client/nexus/core/app_core.py,sha256=kDbtE7qTfQpBkoU64ecRBAGPrUpS9mHM7kqPG4vRO38,15629
|
37
37
|
esd_services_api_client/nexus/core/app_dependencies.py,sha256=1m7Oc9JCXyrU0qVZekYhpbXLQo20aQPQ-Bf8zEdjtqI,8704
|
38
38
|
esd_services_api_client/nexus/core/serializers.py,sha256=Vk9FaEeDHXx3S7rPlYoWzsOcN6gzLzemsrjq6ytfaI0,2217
|
39
39
|
esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
|
@@ -44,14 +44,14 @@ esd_services_api_client/nexus/exceptions/startup_error.py,sha256=4Hughi57Ndi_a8Y
|
|
44
44
|
esd_services_api_client/nexus/input/__init__.py,sha256=ODYhZ791tPC4-eVxSRRlh8FLDDICU7nByLH7c4TD4Xc,758
|
45
45
|
esd_services_api_client/nexus/input/input_processor.py,sha256=vqzeQrtRFqBKTPSEiWX_JZJTF9itMwwvWjPnJVLrSwQ,3132
|
46
46
|
esd_services_api_client/nexus/input/input_reader.py,sha256=aXNMGxrdUX5RDYR666GSGkcZqYMFYoZ8zGVDuUFFFZQ,3505
|
47
|
-
esd_services_api_client/nexus/input/payload_reader.py,sha256=
|
47
|
+
esd_services_api_client/nexus/input/payload_reader.py,sha256=UKFDCqGxeiN9Lq2wpdpCTBGgRlGWnKLr72VTUWHO_HU,2677
|
48
48
|
esd_services_api_client/nexus/modules/__init__.py,sha256=Ngdc35K63JnK1197oyXXHEcSNZXdV4CXBWoviDUeR5U,839
|
49
49
|
esd_services_api_client/nexus/modules/astra_client_module.py,sha256=L8OhdSc7-BY2lnJi4f7FGwCYeBbQqLLo0nBZErRoPgY,1983
|
50
50
|
esd_services_api_client/nexus/modules/mlflow_module.py,sha256=d4y8XetGF37md4dEpEO0CFPj2lDmK_f6LspUm4dRAW4,1331
|
51
51
|
esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
esd_services_api_client/nexus/telemetry/recorder.py,sha256=-shxk2vYDTafJ0U3CzkHxIHBQtxVJ1ZNI4ST0p1YV2g,4801
|
53
|
-
esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=
|
54
|
-
esd_services_api_client-2.6.
|
55
|
-
esd_services_api_client-2.6.
|
56
|
-
esd_services_api_client-2.6.
|
57
|
-
esd_services_api_client-2.6.
|
53
|
+
esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=_fARqlRLuJGzIbwuadEwiLCGYRSCyrIn2DG2iNZBPpk,5215
|
54
|
+
esd_services_api_client-2.6.2a150.dev14.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
|
55
|
+
esd_services_api_client-2.6.2a150.dev14.dist-info/METADATA,sha256=ywtA0isIXDugYfkgiMYrTxHWAu7i1S6JwzznImw_Z1w,1068
|
56
|
+
esd_services_api_client-2.6.2a150.dev14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
57
|
+
esd_services_api_client-2.6.2a150.dev14.dist-info/RECORD,,
|
File without changes
|