esd-services-api-client 2.5.14a148.dev1__py3-none-any.whl → 2.6.0__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.6.0"
@@ -260,8 +260,6 @@ class Nexus:
260
260
 
261
261
  self._injector = Injector(self._configurator.injection_binds)
262
262
 
263
- algorithm: BaselineAlgorithm = self._injector.get(self._algorithm_class)
264
- telemetry_recorder: TelemetryRecorder = self._injector.get(TelemetryRecorder)
265
263
  root_logger: LoggerInterface = self._injector.get(LoggerFactory).create_logger(
266
264
  logger_type=self.__class__,
267
265
  )
@@ -278,6 +276,9 @@ class Nexus:
278
276
  root_logger.error("Error reading algorithm payload", ex)
279
277
  sys.exit(1)
280
278
 
279
+ algorithm: BaselineAlgorithm = self._injector.get(self._algorithm_class)
280
+ telemetry_recorder: TelemetryRecorder = self._injector.get(TelemetryRecorder)
281
+
281
282
  root_logger.info(
282
283
  "Running algorithm {algorithm} on Nexus version {version}",
283
284
  algorithm=algorithm.__class__.__name__,
@@ -288,7 +289,11 @@ class Nexus:
288
289
  self._algorithm_run_task = asyncio.create_task(
289
290
  instance.run(**self._run_args.__dict__)
290
291
  )
291
- await self._algorithm_run_task
292
+
293
+ # avoid exception propagation to main thread, since we need to handle it later
294
+ await asyncio.wait(
295
+ [self._algorithm_run_task], return_when=asyncio.FIRST_EXCEPTION
296
+ )
292
297
  ex = self._algorithm_run_task.exception()
293
298
 
294
299
  if ex is not None:
@@ -42,9 +42,6 @@ from esd_services_api_client.nexus.exceptions.startup_error import (
42
42
  )
43
43
  from esd_services_api_client.nexus.input.input_processor import InputProcessor
44
44
  from esd_services_api_client.nexus.input.input_reader import InputReader
45
- from esd_services_api_client.nexus.input.payload_reader import (
46
- AlgorithmPayload,
47
- )
48
45
  from esd_services_api_client.nexus.telemetry.recorder import TelemetryRecorder
49
46
  from esd_services_api_client.nexus.core.serializers import (
50
47
  TelemetrySerializer,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: esd-services-api-client
3
- Version: 2.5.14a148.dev1
3
+ Version: 2.6.0
4
4
  Summary: Python clients for ESD services
5
5
  License: Apache 2.0
6
6
  Author: ECCO Sneaks & Data
@@ -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=-TbNnP6KPaa-leOriKnbE2HrPtMCycwZhCJj5WFaAAY,33
1
+ esd_services_api_client/__init__.py,sha256=BBAYNMvljwWCMfrNwUz0XsUcC8i6XtJbMZus9tS5Fls,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,8 +32,8 @@ 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=9_9VBEFvw7OdJuBmSO47vKdMIsVGNw78W87QorITeq0,12810
37
- esd_services_api_client/nexus/core/app_dependencies.py,sha256=Y-Xds8aqDrQkDCEM2AnLbuWudeQzt1cXI0nZdrbI_fU,8704
35
+ esd_services_api_client/nexus/core/app_core.py,sha256=JlVn8kkw26blK1FtqNtwNxkjKv9XLCFYAPAHUOzW5Mc,12986
36
+ esd_services_api_client/nexus/core/app_dependencies.py,sha256=tA18Smbiv1HjgXnpCHnigrR2mTmIeZawPKxMH0pezIU,8615
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
40
39
  esd_services_api_client/nexus/exceptions/_nexus_error.py,sha256=QvtY38mNoIA6t26dUN6UIsaPfljhtVNsbQVS7ksMb-Q,895
@@ -51,7 +50,7 @@ esd_services_api_client/nexus/modules/mlflow_module.py,sha256=d4y8XetGF37md4dEpE
51
50
  esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
51
  esd_services_api_client/nexus/telemetry/recorder.py,sha256=-shxk2vYDTafJ0U3CzkHxIHBQtxVJ1ZNI4ST0p1YV2g,4801
53
52
  esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=NgnjSY64nEx1kslkdomENC6vMqkEOpfXggJXwm-NyFs,5163
54
- esd_services_api_client-2.5.14a148.dev1.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
55
- esd_services_api_client-2.5.14a148.dev1.dist-info/METADATA,sha256=D1LUQdX2mHtg7lUYKYYNPxtT6jBv-ILYZKYaPx9eFlM,1174
56
- esd_services_api_client-2.5.14a148.dev1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
57
- esd_services_api_client-2.5.14a148.dev1.dist-info/RECORD,,
53
+ esd_services_api_client-2.6.0.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
54
+ esd_services_api_client-2.6.0.dist-info/METADATA,sha256=9vAceRIDIKylVuNKpmSDzMmovD3cf6QoNoh4Z627sGw,1164
55
+ esd_services_api_client-2.6.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
56
+ esd_services_api_client-2.6.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.1
2
+ Generator: poetry-core 2.1.2
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1 +0,0 @@
1
- __version__ = 'v2.5.14a148.dev1'