nucliadb 6.5.1.post4525__py3-none-any.whl → 6.5.1.post4533__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.
nucliadb/common/nidx.py CHANGED
@@ -170,6 +170,8 @@ class NidxServiceUtility(NidxUtility):
170
170
  indexer: Union[NidxNatsIndexer, NidxGrpcIndexer]
171
171
 
172
172
  def __init__(self, service_name: str):
173
+ self.service_name = service_name
174
+
173
175
  if not settings.nidx_api_address or not settings.nidx_searcher_address:
174
176
  raise ValueError("NIDX_API_ADDRESS and NIDX_SEARCHER_ADDRESS are required")
175
177
 
@@ -182,9 +184,11 @@ class NidxServiceUtility(NidxUtility):
182
184
 
183
185
  async def initialize(self):
184
186
  await self.indexer.initialize()
185
- self.api_client = NidxApiStub(get_traced_grpc_channel(settings.nidx_api_address, "nidx_api"))
187
+ self.api_client = NidxApiStub(
188
+ get_traced_grpc_channel(settings.nidx_api_address, self.service_name)
189
+ )
186
190
  self.searcher_client = NidxSearcherStub(
187
- get_traced_grpc_channel(settings.nidx_searcher_address, "nidx_searcher")
191
+ get_traced_grpc_channel(settings.nidx_searcher_address, self.service_name)
188
192
  )
189
193
 
190
194
  async def finalize(self):
nucliadb/ingest/app.py CHANGED
@@ -176,7 +176,6 @@ async def main_subscriber_workers(): # pragma: no cover
176
176
 
177
177
  def setup_configuration(): # pragma: no cover
178
178
  setup_logging()
179
- assign_partitions(settings)
180
179
 
181
180
  errors.setup_error_handling(importlib.metadata.distribution("nucliadb").version)
182
181
 
@@ -188,9 +187,9 @@ def run_consumer() -> None: # pragma: no cover
188
187
  """
189
188
  Running:
190
189
  - main consumer
191
- - pull worker
192
190
  """
193
191
  setup_configuration()
192
+ assign_partitions(settings)
194
193
  asyncio.run(main_consumer())
195
194
 
196
195
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.5.1.post4525
3
+ Version: 6.5.1.post4533
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: <4,>=3.9
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: nucliadb-telemetry[all]>=6.5.1.post4525
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.5.1.post4525
24
- Requires-Dist: nucliadb-protos>=6.5.1.post4525
25
- Requires-Dist: nucliadb-models>=6.5.1.post4525
26
- Requires-Dist: nidx-protos>=6.5.1.post4525
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.5.1.post4533
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.5.1.post4533
24
+ Requires-Dist: nucliadb-protos>=6.5.1.post4533
25
+ Requires-Dist: nucliadb-models>=6.5.1.post4533
26
+ Requires-Dist: nidx-protos>=6.5.1.post4533
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.24.2
29
29
  Requires-Dist: uvicorn[standard]
@@ -67,7 +67,7 @@ nucliadb/common/exceptions.py,sha256=_PJk_NfAhZBFBvmgAfvsJKZ9KuRt5Y1cNsH3-cXE07w
67
67
  nucliadb/common/filter_expression.py,sha256=aRbGfg2pci7sUo1KgSqcm72Eu-3Ordy8knnW6DYId5o,6568
68
68
  nucliadb/common/ids.py,sha256=4QjoIofes_vtKj2HsFWZf8VVIVWXxdkYtLpx1n618Us,8239
69
69
  nucliadb/common/locking.py,sha256=RL0CabZVPzxHZyUjYeUyLvsJTm7W3J9o4fEgsY_ufNc,5896
70
- nucliadb/common/nidx.py,sha256=3EeQGjM_gxK0l_Rb54fspFWVNnzUiKF-_GMxTiiDC8Q,9116
70
+ nucliadb/common/nidx.py,sha256=4WHcEkLdH54S2C0FcLwHvcQXMiRj2lZ7zqOEbD8eEM8,9189
71
71
  nucliadb/common/vector_index_config.py,sha256=LqGwhrDCp1q1vBow3scd1Chhr4GLYjYnGL72FKvOYYc,1552
72
72
  nucliadb/common/back_pressure/__init__.py,sha256=paAcAZcfGRTyURF9lnn3vX0vcwakTEVswG_xcdGBH-U,928
73
73
  nucliadb/common/back_pressure/cache.py,sha256=ANvXglWzI5naAD6N4E_fNi17qS6KNyAhjLeh6WlZZ84,2931
@@ -130,7 +130,7 @@ nucliadb/export_import/models.py,sha256=dbjScNkiMRv4X3Ktudy1JRliD25bfoDTy3JmEZgQ
130
130
  nucliadb/export_import/tasks.py,sha256=DWbdqY97ffoyfipelGXz3Jqz1iam6JCjQSh367Fc3NA,2947
131
131
  nucliadb/export_import/utils.py,sha256=XV3tJJdhgnVJRSj8AxZjgeipONtB107M185HVJmHp2Q,21626
132
132
  nucliadb/ingest/__init__.py,sha256=fsw3C38VP50km3R-nHL775LNGPpJ4JxqXJ2Ib1f5SqE,1011
133
- nucliadb/ingest/app.py,sha256=Heyd5TubnM6HOo4eQdjg-laedALu1vq96B0XJ5T5QUc,7400
133
+ nucliadb/ingest/app.py,sha256=qiPad2eWgudRdLq0tB0MQZOxOezXO7QBK_ZpPNKQZO0,7378
134
134
  nucliadb/ingest/partitions.py,sha256=2NIhMYbNT0TNBL6bX1UMSi7vxFGICstCKEqsB0TXHOE,2410
135
135
  nucliadb/ingest/processing.py,sha256=QmkHq-BU4vub7JRWe9VHvQ2DcAmT6-CzgFXuZxXhcBU,20953
136
136
  nucliadb/ingest/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -375,8 +375,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
375
375
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
376
376
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
377
377
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
378
- nucliadb-6.5.1.post4525.dist-info/METADATA,sha256=w8Hgr9H0qA7QLKmypMcYBiX1_unYDquS3n3WWodM-gM,4158
379
- nucliadb-6.5.1.post4525.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
380
- nucliadb-6.5.1.post4525.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
381
- nucliadb-6.5.1.post4525.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
382
- nucliadb-6.5.1.post4525.dist-info/RECORD,,
378
+ nucliadb-6.5.1.post4533.dist-info/METADATA,sha256=1cfR9pVZYFVvOoava9Ig86bGc9G4zifW8cefgAAs3gc,4158
379
+ nucliadb-6.5.1.post4533.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
380
+ nucliadb-6.5.1.post4533.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
381
+ nucliadb-6.5.1.post4533.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
382
+ nucliadb-6.5.1.post4533.dist-info/RECORD,,