esd-services-api-client 2.5.1a123.dev5__py3-none-any.whl → 2.5.2__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.
@@ -17,4 +17,4 @@
17
17
  Root index.
18
18
  """
19
19
 
20
- __version__ = "0.0.0"
20
+ __version__ = "2.5.2"
@@ -264,6 +264,8 @@ class Nexus:
264
264
  logger_type=self.__class__,
265
265
  )
266
266
 
267
+ root_logger.start()
268
+
267
269
  root_logger.info(
268
270
  "Running algorithm {algorithm} on Nexus version {version}",
269
271
  algorithm=algorithm.__class__.__name__,
@@ -322,6 +324,8 @@ class Nexus:
322
324
  qes = self._injector.get(QueryEnabledStore)
323
325
  qes.close()
324
326
 
327
+ root_logger.stop()
328
+
325
329
  @classmethod
326
330
  def create(cls) -> "Nexus":
327
331
  """
@@ -67,32 +67,34 @@ class TelemetryRecorder(NexusCoreObject):
67
67
  entity_name=entity_name,
68
68
  run_id=run_id,
69
69
  )
70
- if not isinstance(entity_to_record, dict) and not isinstance(
71
- entity_to_record, DataFrame
72
- ):
70
+
71
+ try:
72
+ serialization_format = self._serializer.get_serialization_format(
73
+ entity_to_record
74
+ )
75
+ except KeyError:
73
76
  self._logger.warning(
74
- "Unsupported data type: {telemetry_entity_type}. Telemetry recording skipped.",
75
- telemetry_entity_type=type(entity_to_record),
77
+ "No telemetry serialization format injected for data type: {telemetry_entity_type}. Telemetry recording skipped.",
78
+ telemetry_entity_type=str(type(entity_to_record)),
76
79
  )
77
- else:
78
- self._storage_client.save_data_as_blob(
79
- data=entity_to_record,
80
- blob_path=DataSocket(
81
- alias="telemetry",
82
- data_path=os.path.join(
83
- self._telemetry_base_path,
84
- "telemetry_group=inputs",
85
- f"entity_name={entity_name}",
86
- f"request_id={run_id}",
87
- run_id,
88
- ),
89
- data_format="null",
90
- ).parse_data_path(),
91
- serialization_format=self._serializer.get_serialization_format(
92
- entity_to_record
80
+ return
81
+
82
+ self._storage_client.save_data_as_blob(
83
+ data=entity_to_record,
84
+ blob_path=DataSocket(
85
+ alias="telemetry",
86
+ data_path=os.path.join(
87
+ self._telemetry_base_path,
88
+ "telemetry_group=inputs",
89
+ f"entity_name={entity_name}",
90
+ f"request_id={run_id}",
91
+ run_id,
93
92
  ),
94
- overwrite=True,
95
- )
93
+ data_format="null",
94
+ ).parse_data_path(),
95
+ serialization_format=serialization_format,
96
+ overwrite=True,
97
+ )
96
98
 
97
99
  telemetry_tasks = [
98
100
  asyncio.create_task(
@@ -151,7 +151,9 @@ class UserTelemetryRecorder(Generic[TPayload, TResult], ABC):
151
151
  ),
152
152
  data_format="null",
153
153
  ).parse_data_path(),
154
- serialization_format=self._serializer.get_serialization_format(telemetry),
154
+ serialization_format=self._serializer.get_serialization_format(
155
+ telemetry.telemetry
156
+ ),
155
157
  overwrite=True,
156
158
  )
157
159
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: esd-services-api-client
3
- Version: 2.5.1a123.dev5
3
+ Version: 2.5.2
4
4
  Summary: Python clients for ESD services
5
5
  Home-page: https://github.com/SneaksAndData/esd-services-api-client
6
6
  License: Apache 2.0
@@ -1,5 +1,4 @@
1
- esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
2
- esd_services_api_client/_version.py,sha256=WaeseLLwaRWVCvoK1zQGLic-bd-qS7KmR1z-D-ijtHs,32
1
+ esd_services_api_client/__init__.py,sha256=ch07kNd4Q5zNLAF_BJBGwAVXECXSDhBB6d8me0uhJMI,648
3
2
  esd_services_api_client/beast/__init__.py,sha256=zNhXcHSP5w4P9quM1XP4oXVJEccvC_VScG41TZ0GzZ8,723
4
3
  esd_services_api_client/beast/v3/__init__.py,sha256=FtumtInoDyCCRE424Llqv8QZLRuwXzj-smyfu1od1nc,754
5
4
  esd_services_api_client/beast/v3/_connector.py,sha256=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
@@ -33,7 +32,7 @@ esd_services_api_client/nexus/algorithms/recursive.py,sha256=uaCCl4q-st_KqbcmkdO
33
32
  esd_services_api_client/nexus/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
33
  esd_services_api_client/nexus/configurations/algorithm_configuration.py,sha256=eE7diX2PATCGkmqhvFOcZwXrr6vns4fqnJGmgNvhhZM,1091
35
34
  esd_services_api_client/nexus/core/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
36
- esd_services_api_client/nexus/core/app_core.py,sha256=R-QpD3SUc3S2H9YKZ_xOlUQLr_x-xusypXlEFURukBk,12087
35
+ esd_services_api_client/nexus/core/app_core.py,sha256=PXFXCmg1_0MMQw0s0F2sT-AHUA9eWO4cFSdMLlvPCoc,12144
37
36
  esd_services_api_client/nexus/core/app_dependencies.py,sha256=dDmgPBJbPzvAWAkKCSPKT1i5fP5cAPDxVL6K27Bp_nI,8561
38
37
  esd_services_api_client/nexus/core/serializers.py,sha256=Vk9FaEeDHXx3S7rPlYoWzsOcN6gzLzemsrjq6ytfaI0,2217
39
38
  esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
@@ -46,9 +45,9 @@ esd_services_api_client/nexus/input/input_processor.py,sha256=vqzeQrtRFqBKTPSEiW
46
45
  esd_services_api_client/nexus/input/input_reader.py,sha256=aXNMGxrdUX5RDYR666GSGkcZqYMFYoZ8zGVDuUFFFZQ,3505
47
46
  esd_services_api_client/nexus/input/payload_reader.py,sha256=Kq0xN1Shyqv71v6YkcrqVTDbmsEjZc8ithsXYpyu87M,2516
48
47
  esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- esd_services_api_client/nexus/telemetry/recorder.py,sha256=pPce97cAVQKOEZX7vYSEJPnRH9kS8vfWtnnZCvGXIZI,4901
50
- esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=Pcpsd1NhR4Z-Bg0vIOguPdtyZRgA38m7BnUD2VaumpU,4957
51
- esd_services_api_client-2.5.1a123.dev5.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
52
- esd_services_api_client-2.5.1a123.dev5.dist-info/METADATA,sha256=ixDKttg0zRKXB4bRlGc_y3lFXiNDSJo8lMWVycftcik,1241
53
- esd_services_api_client-2.5.1a123.dev5.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
54
- esd_services_api_client-2.5.1a123.dev5.dist-info/RECORD,,
48
+ esd_services_api_client/nexus/telemetry/recorder.py,sha256=j4x-wOSNZHkFco-ENlKtSm22d4WGHmuzKMnzvGQAtlQ,4849
49
+ esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=NOcb2l1SkMHinBXSrfbiBZSpufzhBWkuh3Px3NXrkcg,4997
50
+ esd_services_api_client-2.5.2.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
51
+ esd_services_api_client-2.5.2.dist-info/METADATA,sha256=il6Llkejvh-EtSeaVTgxfYbwRj_HJ-l-Lre8x8RZh8g,1232
52
+ esd_services_api_client-2.5.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
53
+ esd_services_api_client-2.5.2.dist-info/RECORD,,
@@ -1 +0,0 @@
1
- __version__ = 'v2.5.1a123.dev5'