datashare-python 0.9.3__tar.gz → 0.9.5__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.9.3 → datashare_python-0.9.5}/PKG-INFO +1 -1
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/discovery.py +3 -1
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/logging_.py +2 -3
- datashare_python-0.9.5/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/pyproject.toml +1 -1
- datashare_python-0.9.3/datashare_python/worker-template.tar.gz +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/.gitignore +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/README.md +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/.gitignore +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/__init__.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/__main__.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/cli/__init__.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/cli/project.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/cli/task.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/cli/utils.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/cli/worker.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/config.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/conftest.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/constants.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/dependencies.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/exceptions.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/interceptors.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/objects.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/task_client.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/template.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/types_.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/utils.py +0 -0
- {datashare_python-0.9.3 → datashare_python-0.9.5}/datashare_python/worker.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: datashare-python
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
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/
|
|
@@ -88,7 +88,9 @@ def discover(
|
|
|
88
88
|
worker_config_cls = discover_worker_config_cls()
|
|
89
89
|
else:
|
|
90
90
|
worker_config_cls = WorkerConfig
|
|
91
|
-
discovered
|
|
91
|
+
if discovered:
|
|
92
|
+
discovered += "\n"
|
|
93
|
+
discovered += f"- worker config class: {worker_config_cls.__name__}"
|
|
92
94
|
logger.info("discovered:\n%s", discovered)
|
|
93
95
|
return wfs, acts, deps, worker_config_cls
|
|
94
96
|
|
|
@@ -67,8 +67,6 @@ class WorkerFilter(logging.Filter):
|
|
|
67
67
|
self.worker_id = worker_id
|
|
68
68
|
|
|
69
69
|
def filter(self, record: logging.LogRecord) -> bool:
|
|
70
|
-
if not hasattr(record, "message") and record.msg is not None:
|
|
71
|
-
setattr(record, "msg", record.msg) # noqa: B010
|
|
72
70
|
if self.worker_id is not None:
|
|
73
71
|
record.worker_id = self.worker_id
|
|
74
72
|
if workflow.in_workflow():
|
|
@@ -121,8 +119,9 @@ class LogFmtFormatter(logging.Formatter):
|
|
|
121
119
|
record.exc_text = self.formatException(record.exc_info)
|
|
122
120
|
logged["exc_info"] = record.exc_text
|
|
123
121
|
for k, v in record.__dict__.items():
|
|
124
|
-
if k in _LOGGED_ATTRIBUTES and k
|
|
122
|
+
if k in _LOGGED_ATTRIBUTES and k not in {"exc_info", "msg"}:
|
|
125
123
|
logged[k] = _encode_value(v)
|
|
124
|
+
logged["msg"] = _encode_value(record.getMessage())
|
|
126
125
|
return " ".join(f"{k}={v}" for k, v in sorted(logged.items()))
|
|
127
126
|
|
|
128
127
|
|
|
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
|