datashare-python 0.8.2__py3-none-any.whl → 0.8.4__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.
@@ -67,14 +67,16 @@ 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
70
72
  if self.worker_id is not None:
71
73
  record.worker_id = self.worker_id
72
74
  if workflow.in_workflow():
73
75
  wf_info = workflow.info()
74
76
  wf_info = {
75
77
  "workflow_run_id": wf_info.run_id,
76
- "workflow_id": self.workflow_id,
77
- "workflow_type": self.workflow_type,
78
+ "workflow_id": wf_info.workflow_id,
79
+ "workflow_type": wf_info.workflow_type,
78
80
  }
79
81
  for attr in _WF_LOGGED_ATTRS:
80
82
  setattr(record, attr, wf_info[attr])
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.8.2
3
+ Version: 0.8.4
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/
@@ -8,20 +8,20 @@ datashare_python/dependencies.py,sha256=5aM6v_WUfIn6SmYMEECh8os1aZOJjuOOCIuk-Y7a
8
8
  datashare_python/discovery.py,sha256=d8fpY9AUSH7WP6600TTmm1Cjr1TKOYBoO50cN61dPdU,6999
9
9
  datashare_python/exceptions.py,sha256=bVHEAXxDPKfxeeMC0hJXEsrJkgsKO2ESAhxWU96GA4M,496
10
10
  datashare_python/interceptors.py,sha256=Pl7GodPO4KbfflmacpW-vOUgLazjlXSlDNENbpOUt1c,6725
11
- datashare_python/logging_.py,sha256=KaKL6kHVPNtjPDacL5odlaA2Wcrl3RlM1qMHKioK0Bs,4480
11
+ datashare_python/logging_.py,sha256=XUnZ0LB6pfuijvmAlWboDuAf4Itf-qluT7W8k4tadkM,4617
12
12
  datashare_python/objects.py,sha256=pE0DGNNkl1etxz5ed7T-EaGo1o9TONjH2Lg9u1qdAWU,7571
13
13
  datashare_python/task_client.py,sha256=oTmP8bvZW0UyhLNMi1AV3XIAx7hrdbxNRss2Mw2azEc,8435
14
14
  datashare_python/template.py,sha256=RxKTYLXoS_EQ8Jc41JkBXppPdbCFqDWfP3BmC0gvB5o,4024
15
15
  datashare_python/types_.py,sha256=9Hk1XqpdXbM1TnEzwvJ5G9ABbaCZW9KgBTtiPBVn_7k,649
16
16
  datashare_python/utils.py,sha256=gX3_RJEJS0sAYBNVfBLoWJu7_hIANhylSAohzXVW-yQ,17982
17
- datashare_python/worker-template.tar.gz,sha256=v7LKWTE05wdQ8XQMO6DrWEuu7IQ_YKfVivu6JW9DcTk,287093
17
+ datashare_python/worker-template.tar.gz,sha256=TEochu1G8nlKiJKmFUxtG89zg5tWTB7afuxTVsaItVU,287133
18
18
  datashare_python/worker.py,sha256=czrN9Z0fPFX-6KHinX8Orx4vb9tpta2e7Qs6H0NiYyE,7534
19
19
  datashare_python/cli/__init__.py,sha256=9BPWtssDgsVfWMsZ1TtZCla0EC_kai4RHttr8oNLYOE,1401
20
20
  datashare_python/cli/project.py,sha256=w32Gy9AOL5B00uDT4in7YUCt2g68FnNbvwg2M3a8G6o,946
21
21
  datashare_python/cli/task.py,sha256=8mvKGS21bZ14BgZ0Uo-dfameljkaI2ZBha80ywCy-E8,5822
22
22
  datashare_python/cli/utils.py,sha256=p69CQb0zfixuyBkiZprhdMCc_NuYwXyAn6vC9H1UzAw,911
23
23
  datashare_python/cli/worker.py,sha256=I4KTpFIpXFowioFn72Rm6LBCYlY-Dhp4NBIPvtRgUXE,5283
24
- datashare_python-0.8.2.dist-info/METADATA,sha256=FCK0AzNmH9tA0rAr5QN6e49xJjM7tc1suklR7BDNer4,921
25
- datashare_python-0.8.2.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
- datashare_python-0.8.2.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
- datashare_python-0.8.2.dist-info/RECORD,,
24
+ datashare_python-0.8.4.dist-info/METADATA,sha256=fVn8GUHkLQ5tGSpvOMbxyp7z06QWSQa-Zl9FNhr5uq4,921
25
+ datashare_python-0.8.4.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
+ datashare_python-0.8.4.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
+ datashare_python-0.8.4.dist-info/RECORD,,