nv-ingest-client 2025.10.9.dev20251009__py3-none-any.whl → 2025.10.10.dev20251010__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.

Potentially problematic release.


This version of nv-ingest-client might be problematic. Click here for more details.

@@ -239,6 +239,9 @@ class _ConcurrentProcessor:
239
239
 
240
240
  is_failed, description = check_ingest_result(result_data)
241
241
 
242
+ if trace_id:
243
+ self.client.register_parent_trace_id(trace_id)
244
+
242
245
  if is_failed:
243
246
  failed_job_spec = self.client._job_index_to_job_spec.get(job_index)
244
247
  self.failures.append((f"{job_index}:{failed_job_spec.source_id}", description))
@@ -722,6 +725,7 @@ class NvIngestClient:
722
725
  except ValueError:
723
726
  self._telemetry_max_calls = 10000
724
727
  self._telemetry = {}
728
+ self._completed_parent_trace_ids: List[str] = [] # 1054
725
729
  self.reset_telemetry()
726
730
 
727
731
  def __str__(self) -> str:
@@ -1794,3 +1798,19 @@ class NvIngestClient:
1794
1798
  job_ids.append(job_id)
1795
1799
 
1796
1800
  return job_ids
1801
+
1802
+ def register_parent_trace_id(self, trace_id: Optional[str]) -> None:
1803
+ """Record a parent trace identifier once its aggregation completed."""
1804
+
1805
+ if not trace_id:
1806
+ return
1807
+
1808
+ if trace_id not in self._completed_parent_trace_ids:
1809
+ self._completed_parent_trace_ids.append(trace_id)
1810
+
1811
+ def consume_completed_parent_trace_ids(self) -> List[str]:
1812
+ """Return and clear the set of completed parent trace identifiers."""
1813
+
1814
+ trace_ids = list(self._completed_parent_trace_ids)
1815
+ self._completed_parent_trace_ids.clear()
1816
+ return trace_ids
@@ -426,20 +426,25 @@ class Ingestor:
426
426
  'concurrency_limit', 'timeout', 'max_job_retries', 'retry_delay',
427
427
  'data_only', 'return_full_response', 'verbose'. Unrecognized keys are passed
428
428
  through to process_jobs_concurrently.
429
+ Optional flags include `include_parent_trace_ids=True` to also return
430
+ parent job trace identifiers gathered during ingestion.
429
431
 
430
432
  Returns
431
433
  -------
432
- results : list
433
- When `return_failures` is False:
434
- - Default: List of response['data'] per job (list[list[dict]]).
435
- - If `return_full_response=True`: List of full response envelopes (each dict
436
- contains keys like 'data', 'trace', 'annotations').
434
+ results : list of dict
435
+ List of successful job results when `return_failures` is False.
436
+
437
437
  results, failures : tuple (list of dict, list of tuple of str)
438
438
  Tuple containing successful results and failure information when `return_failures` is True.
439
+
440
+ If `include_parent_trace_ids=True` is provided via kwargs, an additional
441
+ list of parent trace IDs is appended to the return value.
439
442
  """
440
443
  if save_to_disk and (not self._output_config):
441
444
  self.save_to_disk()
442
445
 
446
+ include_parent_trace_ids = bool(kwargs.pop("include_parent_trace_ids", False))
447
+
443
448
  self._prepare_ingest_run()
444
449
 
445
450
  # Add jobs locally first
@@ -641,7 +646,15 @@ class Ingestor:
641
646
  except Exception:
642
647
  pass
643
648
 
644
- return (results, failures) if return_failures else results
649
+ parent_trace_ids = self._client.consume_completed_parent_trace_ids() if include_parent_trace_ids else []
650
+
651
+ if return_failures and include_parent_trace_ids:
652
+ return results, failures, parent_trace_ids
653
+ if return_failures:
654
+ return results, failures
655
+ if include_parent_trace_ids:
656
+ return results, parent_trace_ids
657
+ return results
645
658
 
646
659
  def ingest_async(self, **kwargs: Any) -> Future:
647
660
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nv-ingest-client
3
- Version: 2025.10.9.dev20251009
3
+ Version: 2025.10.10.dev20251010
4
4
  Summary: Python client for the nv-ingest service
5
5
  Author-email: Jeremy Dyer <jdyer@nvidia.com>
6
6
  License: Apache License
@@ -6,9 +6,9 @@ nv_ingest_client/cli/util/click.py,sha256=YjQU1uF148FU5D3ozC2m1kkfOOJxO1U8U552-T
6
6
  nv_ingest_client/cli/util/processing.py,sha256=ULGCYQF1RTDQV_b35YM1WQRqIjR2wQRMJWu41DogagE,6259
7
7
  nv_ingest_client/cli/util/system.py,sha256=AQLq0DD2Ns8jRanrKu1tmVBKPA9rl-F3-ZsGI6FXLqE,1105
8
8
  nv_ingest_client/client/__init__.py,sha256=eEX9l1qmkLH2lAAZU3eP17SCV06ZjjrshHAB_xbboHA,375
9
- nv_ingest_client/client/client.py,sha256=egPegAoe8sVYxWWbNl1V5xJdaABJxgVxX7AHRoa049w,76058
9
+ nv_ingest_client/client/client.py,sha256=gCbOSDoNnt7AYFvyCIjfH36gVxFHNDl2vtpKPKFKSzs,76802
10
10
  nv_ingest_client/client/ingest_job_handler.py,sha256=i2PC5AUaglN5aGAqE4Nrbk95TyLYN7P_Nwba0C_19xA,16810
11
- nv_ingest_client/client/interface.py,sha256=c1SRgS_ryz-DAYRPr8OIW0HpWzUx-GsnlfEK2_K7fZg,48897
11
+ nv_ingest_client/client/interface.py,sha256=1WKdCynIqdSJGpcLIim85hzDj8vKPtKuPjGkKYCMp4I,49421
12
12
  nv_ingest_client/client/util/processing.py,sha256=Ky7x7QbLn3BlgYwmrmoIc-o1VwmlmrcP9tn7GVTi0t0,2502
13
13
  nv_ingest_client/primitives/__init__.py,sha256=3rbpLCI7Bl0pntGatAxXD_V01y6dcLhHFheI3wqet-I,269
14
14
  nv_ingest_client/primitives/jobs/__init__.py,sha256=-yohgHv3LcCtSleHSaxjv1oO7nNcMCjN3ZYoOkIypIk,469
@@ -47,9 +47,9 @@ nv_ingest_client/util/vdb/__init__.py,sha256=ZmoEzeM9LzwwrVvu_DVUnjRNx-x8ahkNeIr
47
47
  nv_ingest_client/util/vdb/adt_vdb.py,sha256=UubzAMSfyrqqpD-OQErpBs25hC2Mw8zGZ4waenGXPOk,515
48
48
  nv_ingest_client/util/vdb/milvus.py,sha256=dYXszrWdwYYASBW6t8lMI6QK9-BzhV6HAUYjt3cIDsE,78602
49
49
  nv_ingest_client/util/vdb/opensearch.py,sha256=I4FzF95VWCOkyzhfm-szdfK1Zd9ugUc8AxxpAdEMWGE,7538
50
- nv_ingest_client-2025.10.9.dev20251009.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
51
- nv_ingest_client-2025.10.9.dev20251009.dist-info/METADATA,sha256=rscM-NBJXWXk1Ghg5KG0KTU56a4yWAV0c419opVrDS0,30626
52
- nv_ingest_client-2025.10.9.dev20251009.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
- nv_ingest_client-2025.10.9.dev20251009.dist-info/entry_points.txt,sha256=3uQVZkTZIjO08_bjTV-g0CDF5H1nrP1zWXU9gJOweuI,137
54
- nv_ingest_client-2025.10.9.dev20251009.dist-info/top_level.txt,sha256=1eMhBFD3SiWmpXnod2LM66C1HrSLSk96ninZi5XX-cE,17
55
- nv_ingest_client-2025.10.9.dev20251009.dist-info/RECORD,,
50
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
51
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/METADATA,sha256=h-6OgmvZctiJWktQqbyJk5xcpCtAkrdTN5h9PuzllA0,30627
52
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
53
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/entry_points.txt,sha256=3uQVZkTZIjO08_bjTV-g0CDF5H1nrP1zWXU9gJOweuI,137
54
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/top_level.txt,sha256=1eMhBFD3SiWmpXnod2LM66C1HrSLSk96ninZi5XX-cE,17
55
+ nv_ingest_client-2025.10.10.dev20251010.dist-info/RECORD,,