dex-python-sdk 1.10.0__tar.gz → 1.10.1__tar.gz
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.
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/PKG-INFO +4 -1
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/README.md +3 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_pull_worker.py +8 -7
- dex_python_sdk-1.10.1/dex/dexpb/dex_pb2.py +545 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/dexpb/dex_pb2.pyi +10 -4
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/pyproject.toml +1 -1
- dex_python_sdk-1.10.0/dex/dexpb/dex_pb2.py +0 -545
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/LEGACY_NOTICES.md +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/LICENSE +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/__init__.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_async_value_hydrator.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_async_worker_dispatcher.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_async_worker_service.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_credential_transport.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_grpc_errors.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_invocation_context.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_native.pyi +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_server_protocol.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_utils.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_value_hydrator.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_value_mapper.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_worker_dispatcher.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/_worker_service.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/async_client.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/async_worker.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/attribute.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/attribute_match.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/blob_cache.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/channel.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/client.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/client_options.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/codec.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/condition.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/context.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/credential.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/dexpb/__init__.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/dexpb/dex_pb2_grpc.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/flow.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/flow_config.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/flow_info.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/flow_options.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/flow_result.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/py.typed +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/rpc_invoke_options.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/runtime_errors.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/step.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/step_execution.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/stream.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/subflow.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/timer.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/wait.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/wait_options.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/worker.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/dex/worker_options.py +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/Cargo.lock +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/Cargo.toml +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/Cargo.toml +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/LICENSE +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/config.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/entry.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/error.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/format.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/lib.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/policy.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/src/store.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache/tests/blob_cache_integration.rs +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache-python/Cargo.toml +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache-python/LICENSE +0 -0
- {dex_python_sdk-1.10.0 → dex_python_sdk-1.10.1}/sdk-rust/crates/dex-blob-cache-python/src/lib.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dex-python-sdk
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.1
|
|
4
4
|
Requires-Dist: grpcio>=1.83.0
|
|
5
5
|
Requires-Dist: grpcio-status>=1.83.0
|
|
6
6
|
Requires-Dist: protobuf>=7.35.1
|
|
@@ -628,6 +628,9 @@ environment:
|
|
|
628
628
|
./run-integration-tests.sh
|
|
629
629
|
```
|
|
630
630
|
|
|
631
|
+
Set `DEX_INTEG_WORKER_MODE=pull` to run the suite with pull Workers instead of
|
|
632
|
+
listening Workers. The default is `push`.
|
|
633
|
+
|
|
631
634
|
### Measure integration coverage
|
|
632
635
|
|
|
633
636
|
Run the same integration suite with Python source coverage:
|
|
@@ -612,6 +612,9 @@ environment:
|
|
|
612
612
|
./run-integration-tests.sh
|
|
613
613
|
```
|
|
614
614
|
|
|
615
|
+
Set `DEX_INTEG_WORKER_MODE=pull` to run the suite with pull Workers instead of
|
|
616
|
+
listening Workers. The default is `push`.
|
|
617
|
+
|
|
615
618
|
### Measure integration coverage
|
|
616
619
|
|
|
617
620
|
Run the same integration suite with Python source coverage:
|
|
@@ -187,6 +187,8 @@ class PullWorkerRuntime:
|
|
|
187
187
|
try:
|
|
188
188
|
for stream in tuple(self._streams):
|
|
189
189
|
stream.drain()
|
|
190
|
+
if not stream.is_busy and not stream.is_half_closing:
|
|
191
|
+
stream.run_task.cancel()
|
|
190
192
|
self.signal()
|
|
191
193
|
active = [
|
|
192
194
|
stream.handler_task for stream in self._streams if stream.handler_task
|
|
@@ -246,7 +248,7 @@ class PullStream:
|
|
|
246
248
|
self._active = threading.Event()
|
|
247
249
|
self._call: Any = None
|
|
248
250
|
self._send_lock = asyncio.Lock()
|
|
249
|
-
self.
|
|
251
|
+
self._is_reconnecting = False
|
|
250
252
|
self._deadline_handle: asyncio.TimerHandle | None = None
|
|
251
253
|
|
|
252
254
|
def on_done(self, completed: asyncio.Task[None]) -> None:
|
|
@@ -268,10 +270,9 @@ class PullStream:
|
|
|
268
270
|
)
|
|
269
271
|
if self.runtime.is_stopping:
|
|
270
272
|
break
|
|
271
|
-
if self.
|
|
272
|
-
self.
|
|
273
|
+
if self._is_reconnecting:
|
|
274
|
+
self._is_reconnecting = False
|
|
273
275
|
backoff = 0.1
|
|
274
|
-
continue
|
|
275
276
|
if was_registered:
|
|
276
277
|
backoff = 0.1
|
|
277
278
|
code = error.code() if error is not None else None
|
|
@@ -345,7 +346,7 @@ class PullStream:
|
|
|
345
346
|
await self._call.done_writing()
|
|
346
347
|
await self._await_stream_eof(reader)
|
|
347
348
|
reader = None
|
|
348
|
-
self.
|
|
349
|
+
self._is_reconnecting = True
|
|
349
350
|
return was_registered
|
|
350
351
|
if reader not in completed:
|
|
351
352
|
continue
|
|
@@ -356,7 +357,7 @@ class PullStream:
|
|
|
356
357
|
kind = frame.WhichOneof("frame")
|
|
357
358
|
if not was_registered:
|
|
358
359
|
if kind == "reconnect":
|
|
359
|
-
self.
|
|
360
|
+
self._is_reconnecting = True
|
|
360
361
|
return False
|
|
361
362
|
if kind != "registered":
|
|
362
363
|
raise RuntimeError("Worker task stream did not register")
|
|
@@ -375,7 +376,7 @@ class PullStream:
|
|
|
375
376
|
elif kind == "reconnect":
|
|
376
377
|
self.drain()
|
|
377
378
|
if not self.is_busy:
|
|
378
|
-
self.
|
|
379
|
+
self._is_reconnecting = True
|
|
379
380
|
return was_registered
|
|
380
381
|
finally:
|
|
381
382
|
self.is_half_closing = False
|