nucliadb 6.3.4.post3848__py3-none-any.whl → 6.3.4.post3852__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.
@@ -26,7 +26,6 @@ Rollover to update to nidx_relation v2
26
26
 
27
27
  import logging
28
28
 
29
- from nucliadb.common.cluster.rollover import rollover_kb_index
30
29
  from nucliadb.migrator.context import ExecutionContext
31
30
 
32
31
  logger = logging.getLogger(__name__)
@@ -36,4 +35,8 @@ async def migrate(context: ExecutionContext) -> None: ...
36
35
 
37
36
 
38
37
  async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
39
- await rollover_kb_index(context, kbid)
38
+ """
39
+ We only need 1 rollover migration defined at a time; otherwise, we will
40
+ possibly run many for a kb when we only ever need to run one
41
+ """
42
+ # await rollover_kb_index(context, kbid)
@@ -0,0 +1,43 @@
1
+ # Copyright (C) 2021 Bosutech XXI S.L.
2
+ #
3
+ # nucliadb is offered under the AGPL v3.0 and as commercial software.
4
+ # For commercial licensing, contact us at info@nuclia.com.
5
+ #
6
+ # AGPL:
7
+ # This program is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU Affero General Public License as
9
+ # published by the Free Software Foundation, either version 3 of the
10
+ # License, or (at your option) any later version.
11
+ #
12
+ # This program is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU Affero General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Affero General Public License
18
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
+ #
20
+
21
+ """Migration #34
22
+
23
+ Rollover to update to nidx_texts v3
24
+
25
+ """
26
+
27
+ import logging
28
+ import os
29
+
30
+ from nucliadb.common.cluster.rollover import rollover_kb_index
31
+ from nucliadb.migrator.context import ExecutionContext
32
+
33
+ logger = logging.getLogger(__name__)
34
+
35
+
36
+ async def migrate(context: ExecutionContext) -> None: ...
37
+
38
+
39
+ async def migrate_kb(context: ExecutionContext, kbid: str) -> None:
40
+ if os.environ.get("RUNNING_ENVIRONMENT") == "stage":
41
+ # Skip migration in stage environment, as we already migrated the indexes manually
42
+ return
43
+ await rollover_kb_index(context, kbid)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.3.4.post3848
3
+ Version: 6.3.4.post3852
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License: AGPL
@@ -20,11 +20,11 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
21
  Requires-Python: <4,>=3.9
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: nucliadb-telemetry[all]>=6.3.4.post3848
24
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.post3848
25
- Requires-Dist: nucliadb-protos>=6.3.4.post3848
26
- Requires-Dist: nucliadb-models>=6.3.4.post3848
27
- Requires-Dist: nidx-protos>=6.3.4.post3848
23
+ Requires-Dist: nucliadb-telemetry[all]>=6.3.4.post3852
24
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.3.4.post3852
25
+ Requires-Dist: nucliadb-protos>=6.3.4.post3852
26
+ Requires-Dist: nucliadb-models>=6.3.4.post3852
27
+ Requires-Dist: nidx-protos>=6.3.4.post3852
28
28
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
29
29
  Requires-Dist: nuclia-models>=0.24.2
30
30
  Requires-Dist: uvicorn
@@ -28,7 +28,8 @@ migrations/0029_backfill_field_status.py,sha256=QWF69n1da9lpRnbEpgbqPjSQ-Wfn6rMC
28
28
  migrations/0030_label_deduplication.py,sha256=y14TxtCMi3-TBMz_eZoyyPDHNlZb29taJujlDuHumsA,2008
29
29
  migrations/0031_languages_deduplication.py,sha256=o6va6lP3oTRT1uSzp5MIhHHBFbhCxSZ-oNlXXpiAdUo,2340
30
30
  migrations/0032_remove_old_relations.py,sha256=ZaswhmRRsLgw6DVYVdT7cP-gdBf4X3PL9fklUXrmSD0,2318
31
- migrations/0033_rollover_nidx_relation_2.py,sha256=LLhw7LknMVl1mu_mQlsijVUYDe7F87eZx2N8IyeZUK8,1244
31
+ migrations/0033_rollover_nidx_relation_2.py,sha256=9etpqNLVS3PA14qIdsdhorReZxenDaBl-IJNN2AK_Fg,1340
32
+ migrations/0034_rollover_nidx_texts_3.py,sha256=gI2BQ4ATq4iLesHtKRWbk4rM12ulWzSKSkytx8IFkAY,1414
32
33
  migrations/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
33
34
  migrations/pg/0001_bootstrap.py,sha256=Fsqkeof50m7fKiJN05kmNEMwiKDlOrAgcAS5sLLkutA,1256
34
35
  migrations/pg/0002_catalog.py,sha256=Rsleecu351Ty19kYZgOpqX5G3MEAY8nMxCJrAeuS2Mw,1690
@@ -354,8 +355,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
354
355
  nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
355
356
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
356
357
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
357
- nucliadb-6.3.4.post3848.dist-info/METADATA,sha256=DWR_pJ0AZMdgD9bxybhMAnKmz1ZkqthQuo6PdKBKLZ0,4291
358
- nucliadb-6.3.4.post3848.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
359
- nucliadb-6.3.4.post3848.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
360
- nucliadb-6.3.4.post3848.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
361
- nucliadb-6.3.4.post3848.dist-info/RECORD,,
358
+ nucliadb-6.3.4.post3852.dist-info/METADATA,sha256=5_rznWENKgewjN1kEzRkYiJUdMHH4OQ3_NRbjNp0Bp4,4291
359
+ nucliadb-6.3.4.post3852.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
360
+ nucliadb-6.3.4.post3852.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
361
+ nucliadb-6.3.4.post3852.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
362
+ nucliadb-6.3.4.post3852.dist-info/RECORD,,