datashare-python 0.10.5__tar.gz → 0.10.6__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.
- {datashare_python-0.10.5 → datashare_python-0.10.6}/PKG-INFO +1 -1
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/interceptors.py +5 -10
- datashare_python-0.10.6/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/pyproject.toml +1 -1
- datashare_python-0.10.5/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/.gitignore +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/README.md +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/.gitignore +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/__init__.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/__main__.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/cli/__init__.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/cli/project.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/cli/task.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/cli/utils.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/cli/worker.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/config.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/conftest.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/constants.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/dependencies.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/discovery.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/exceptions.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/logging_.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/mimetypes_.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/objects.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/task_client.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/template.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/types_.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/utils.py +0 -0
- {datashare_python-0.10.5 → datashare_python-0.10.6}/datashare_python/worker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: datashare-python
|
|
3
|
-
Version: 0.10.
|
|
3
|
+
Version: 0.10.6
|
|
4
4
|
Summary: Manage Python tasks and local resources in Datashare
|
|
5
5
|
Project-URL: Homepage, https://icij.github.io/datashare-python/
|
|
6
6
|
Project-URL: Documentation, https://icij.github.io/datashare-python/
|
|
@@ -14,7 +14,6 @@ from typing import (
|
|
|
14
14
|
Annotated,
|
|
15
15
|
Any,
|
|
16
16
|
NoReturn,
|
|
17
|
-
ParamSpec,
|
|
18
17
|
Self,
|
|
19
18
|
TypeVar,
|
|
20
19
|
get_args,
|
|
@@ -452,11 +451,7 @@ class _HeartbeatInboundInterceptor(ActivityInboundInterceptor):
|
|
|
452
451
|
await asyncio.wait([heartbeat_task])
|
|
453
452
|
|
|
454
453
|
|
|
455
|
-
P
|
|
456
|
-
T = TypeVar("T")
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
def _fail_safe[P, T](
|
|
454
|
+
def _fail_safe[**P, T](
|
|
460
455
|
fn: Callable[P, T],
|
|
461
456
|
action: str,
|
|
462
457
|
excs: tuple[type[Exception]] | None = None,
|
|
@@ -466,9 +461,9 @@ def _fail_safe[P, T](
|
|
|
466
461
|
if iscoroutinefunction(fn):
|
|
467
462
|
|
|
468
463
|
@wraps(fn)
|
|
469
|
-
async def wrapper(*args, **kwargs) -> None:
|
|
464
|
+
async def wrapper(*args: P.args, **kwargs: P.kwargs) -> None:
|
|
470
465
|
try:
|
|
471
|
-
await fn(*args, **kwargs)
|
|
466
|
+
return await fn(*args, **kwargs)
|
|
472
467
|
except excs as exc:
|
|
473
468
|
msg = f"failed to {action} due to {exc}"
|
|
474
469
|
logger.exception(msg)
|
|
@@ -476,9 +471,9 @@ def _fail_safe[P, T](
|
|
|
476
471
|
else:
|
|
477
472
|
|
|
478
473
|
@wraps(fn)
|
|
479
|
-
def wrapper(*args, **kwargs) -> None:
|
|
474
|
+
def wrapper(*args: P.args, **kwargs: P.kwargs) -> None:
|
|
480
475
|
try:
|
|
481
|
-
fn(*args, **kwargs)
|
|
476
|
+
return fn(*args, **kwargs)
|
|
482
477
|
except excs as exc:
|
|
483
478
|
msg = f"failed to {action} due to {exc}"
|
|
484
479
|
logger.exception(msg)
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|