esd-services-api-client 2.6.3a155.dev19__py3-none-any.whl → 2.6.3a160.dev4__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.
@@ -1 +1 @@
1
- __version__ = 'v2.6.3a155.dev19'
1
+ __version__ = 'v2.6.3a160.dev4'
@@ -437,12 +437,17 @@ class Nexus:
437
437
  algorithm=algorithm.__class__.alias().upper(),
438
438
  version=__version__,
439
439
  )
440
+ metrics_provider.gauge("failed_runs", 1)
441
+ metrics_provider.gauge("successful_runs", 0)
440
442
 
441
443
  await self._submit_result(
442
444
  self._algorithm_run_task.result() if not ex else None,
443
445
  self._algorithm_run_task.exception(),
444
446
  )
445
447
 
448
+ metrics_provider.gauge("failed_runs", 0)
449
+ metrics_provider.gauge("successful_runs", 1)
450
+
446
451
  # record telemetry
447
452
  root_logger.info(
448
453
  "Recording telemetry for the run {run_id}",
@@ -466,16 +471,23 @@ class Nexus:
466
471
  on_complete_tasks, return_when=asyncio.FIRST_EXCEPTION
467
472
  )
468
473
  if len(pending) > 0:
474
+ metrics_provider.gauge("telemetry_reports_incomplete", 1)
469
475
  root_logger.warning(
470
476
  "Some post-processing operations did not complete or failed. Please review application logs for more information"
471
477
  )
478
+ else:
479
+ metrics_provider.gauge("telemetry_reports_incomplete", 0)
480
+
472
481
  for done_on_complete_task in done:
473
482
  on_complete_task_exc = done_on_complete_task.exception()
474
483
  if on_complete_task_exc:
484
+ metrics_provider.increment("telemetry_reports_failed")
475
485
  root_logger.warning(
476
486
  "Post processing task failed",
477
487
  exception=on_complete_task_exc,
478
488
  )
489
+ else:
490
+ metrics_provider.increment("telemetry_reports_succeeded")
479
491
  else:
480
492
  root_logger.info(
481
493
  "No post processing tasks were defined for this run."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: esd-services-api-client
3
- Version: 2.6.3a155.dev19
3
+ Version: 2.6.3a160.dev4
4
4
  Summary: Python clients for ESD services
5
5
  License: Apache 2.0
6
6
  Author: ECCO Sneaks & Data
@@ -1,5 +1,5 @@
1
1
  esd_services_api_client/__init__.py,sha256=4LskDwFuAFMOjHtN3_-71G_VZ4MNfjMJ7wX2cHYxV-0,648
2
- esd_services_api_client/_version.py,sha256=U1Ia6qUNjiAVWQwygC_bds7qSIvolOoxiOD36JLBt5o,33
2
+ esd_services_api_client/_version.py,sha256=7WyFzLrx_RiaBGImLcdgVDAZ11YSPvMc8DryHR-DnI0,32
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
5
  esd_services_api_client/beast/v3/_connector.py,sha256=VqxiCzJWKERh42aZAIphzmOEG5cdOcKM0DQzG7eQ_-8,11479
@@ -34,7 +34,7 @@ esd_services_api_client/nexus/algorithms/recursive.py,sha256=uaCCl4q-st_KqbcmkdO
34
34
  esd_services_api_client/nexus/configurations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  esd_services_api_client/nexus/configurations/algorithm_configuration.py,sha256=eE7diX2PATCGkmqhvFOcZwXrr6vns4fqnJGmgNvhhZM,1091
36
36
  esd_services_api_client/nexus/core/__init__.py,sha256=sOgKKq3_LZGbLmQMtMS7lDw2hv027qownTmNIRV0BB8,627
37
- esd_services_api_client/nexus/core/app_core.py,sha256=md1iyO61ZexYcNXVm3LoU9FEj4aCbkgf_O9zwQxyZeA,17284
37
+ esd_services_api_client/nexus/core/app_core.py,sha256=YIfCQ3arplJcK2jY-rDhvLgE3YVnGk_iuWapi-Cqs4s,17903
38
38
  esd_services_api_client/nexus/core/app_dependencies.py,sha256=-s_jtEdw25Jef6dMCtIqfIQnAPmzP7fvrB1oq4GSjwA,8042
39
39
  esd_services_api_client/nexus/core/serializers.py,sha256=0IfXadbR3G0mowqRQlIOP2LFjNs-P-Tr42Ia2G-ehtg,2275
40
40
  esd_services_api_client/nexus/exceptions/__init__.py,sha256=feN33VdqB5-2bD9aJesJl_OlsKrNNo3hZCnQgKuaU9k,696
@@ -52,7 +52,7 @@ esd_services_api_client/nexus/modules/mlflow_module.py,sha256=d4y8XetGF37md4dEpE
52
52
  esd_services_api_client/nexus/telemetry/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  esd_services_api_client/nexus/telemetry/recorder.py,sha256=-shxk2vYDTafJ0U3CzkHxIHBQtxVJ1ZNI4ST0p1YV2g,4801
54
54
  esd_services_api_client/nexus/telemetry/user_telemetry_recorder.py,sha256=E4bj0N4QDo9kSxf1XMSplCfSG29iDKg-UgrRY-nq_XE,5225
55
- esd_services_api_client-2.6.3a155.dev19.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
56
- esd_services_api_client-2.6.3a155.dev19.dist-info/METADATA,sha256=n27E5WE9Cpv-nKJ5-_eNOtLdztjesaqtv04OmZzvQAE,1072
57
- esd_services_api_client-2.6.3a155.dev19.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
58
- esd_services_api_client-2.6.3a155.dev19.dist-info/RECORD,,
55
+ esd_services_api_client-2.6.3a160.dev4.dist-info/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
56
+ esd_services_api_client-2.6.3a160.dev4.dist-info/METADATA,sha256=pe_2aMuYv81DQlDIkSnfP4Q1InONzngusPfiMlEDQ_k,1071
57
+ esd_services_api_client-2.6.3a160.dev4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
58
+ esd_services_api_client-2.6.3a160.dev4.dist-info/RECORD,,