nucliadb-utils 5.3.0.post2135__py3-none-any.whl → 5.3.0.post2188__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_utils/transaction.py +14 -0
- {nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/METADATA +3 -3
- {nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/RECORD +6 -6
- {nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/WHEEL +1 -1
- {nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/zip-safe +0 -0
nucliadb_utils/transaction.py
CHANGED
@@ -58,6 +58,10 @@ class MaxTransactionSizeExceededError(Exception):
|
|
58
58
|
pass
|
59
59
|
|
60
60
|
|
61
|
+
class StreamingServerTimeoutError(Exception):
|
62
|
+
pass
|
63
|
+
|
64
|
+
|
61
65
|
class LocalTransactionUtility:
|
62
66
|
async def commit(
|
63
67
|
self,
|
@@ -204,6 +208,16 @@ class TransactionUtility:
|
|
204
208
|
res = await self.js.publish(target_subject, writer.SerializeToString(), headers=headers)
|
205
209
|
except nats.errors.MaxPayloadError as ex:
|
206
210
|
raise MaxTransactionSizeExceededError() from ex
|
211
|
+
except nats.errors.TimeoutError as ex:
|
212
|
+
logger.exception(
|
213
|
+
"Nats server timeout error on publish",
|
214
|
+
extra={
|
215
|
+
"partition": partition,
|
216
|
+
"kbid": writer.kbid,
|
217
|
+
"resource": writer.uuid,
|
218
|
+
},
|
219
|
+
)
|
220
|
+
raise StreamingServerTimeoutError() from ex
|
207
221
|
|
208
222
|
waiting_for.seq = res.seq
|
209
223
|
|
{nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 5.3.0.
|
3
|
+
Version: 5.3.0.post2188
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -24,8 +24,8 @@ Requires-Dist: PyNaCl
|
|
24
24
|
Requires-Dist: pyjwt>=2.4.0
|
25
25
|
Requires-Dist: memorylru>=1.1.2
|
26
26
|
Requires-Dist: mrflagly>=0.2.9
|
27
|
-
Requires-Dist: nucliadb-protos>=5.3.0.
|
28
|
-
Requires-Dist: nucliadb-telemetry>=5.3.0.
|
27
|
+
Requires-Dist: nucliadb-protos>=5.3.0.post2188
|
28
|
+
Requires-Dist: nucliadb-telemetry>=5.3.0.post2188
|
29
29
|
Provides-Extra: cache
|
30
30
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
31
31
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -15,7 +15,7 @@ nucliadb_utils/run.py,sha256=HpAIM8xbR7UpVC2_7xOjB4fYbUVykyPP6yHrv2RD3DI,1707
|
|
15
15
|
nucliadb_utils/settings.py,sha256=u1JXTUSL6MlZvZkRqrLHiSHtxFVgtpQtFBKb6PBQ1Ls,8139
|
16
16
|
nucliadb_utils/signals.py,sha256=JRNv2y9zLtBjOANBf7krGfDGfOc9qcoXZ6N1nKWS2FE,2674
|
17
17
|
nucliadb_utils/store.py,sha256=kQ35HemE0v4_Qg6xVqNIJi8vSFAYQtwI3rDtMsNy62Y,890
|
18
|
-
nucliadb_utils/transaction.py,sha256=
|
18
|
+
nucliadb_utils/transaction.py,sha256=6N2JyUKqH5MCaWnWSR7_fFV4ky_OAbIEtY5hdOw6Z7Q,7740
|
19
19
|
nucliadb_utils/utilities.py,sha256=1C5o6WcOupoTfBRn6dgHc-XTZ2bsG397JVQCKy6swBo,15832
|
20
20
|
nucliadb_utils/aiopynecone/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIXMa20ks,835
|
21
21
|
nucliadb_utils/aiopynecone/client.py,sha256=MPyHnDXwhukJr7U3CJh7BpsekfSuOkyM4g5b9LLtzc8,22941
|
@@ -59,8 +59,8 @@ nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQ
|
|
59
59
|
nucliadb_utils/tests/local.py,sha256=7nuP8EFUAiA8ZH50R1iPV9EUXBySQxOanVm3Zht_e0g,1835
|
60
60
|
nucliadb_utils/tests/nats.py,sha256=xqpww4jZjTKY9oPGlJdDJG67L3FIBQsa9qDHxILR8r8,7687
|
61
61
|
nucliadb_utils/tests/s3.py,sha256=IdMxK_cNdSHLvO1u8BwsKFzD87Hk1MVPDZ57zx6h-rA,3656
|
62
|
-
nucliadb_utils-5.3.0.
|
63
|
-
nucliadb_utils-5.3.0.
|
64
|
-
nucliadb_utils-5.3.0.
|
65
|
-
nucliadb_utils-5.3.0.
|
66
|
-
nucliadb_utils-5.3.0.
|
62
|
+
nucliadb_utils-5.3.0.post2188.dist-info/METADATA,sha256=HacXAO6qx8WrfTjVOdp0CeOr0lBa5UTjsAiJEXAuEj0,2055
|
63
|
+
nucliadb_utils-5.3.0.post2188.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
64
|
+
nucliadb_utils-5.3.0.post2188.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
65
|
+
nucliadb_utils-5.3.0.post2188.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
66
|
+
nucliadb_utils-5.3.0.post2188.dist-info/RECORD,,
|
{nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/top_level.txt
RENAMED
File without changes
|
{nucliadb_utils-5.3.0.post2135.dist-info → nucliadb_utils-5.3.0.post2188.dist-info}/zip-safe
RENAMED
File without changes
|