datashare-python 0.2.26__py3-none-any.whl → 0.3.0__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.
@@ -109,8 +109,12 @@ async def start(
109
109
  )
110
110
  else:
111
111
  bootstrap_config = WorkerConfig()
112
+ worker_id = create_worker_id(worker_id_prefix or "worker")
112
113
  logger.info(
113
- "starting worker with config: %s", bootstrap_config.model_dump_json(indent=2)
114
+ "starting worker %s on queue %s, with config: %s",
115
+ worker_id,
116
+ queue,
117
+ bootstrap_config.model_dump_json(indent=2),
114
118
  )
115
119
  temporal_override = dict()
116
120
  if temporal_address is not None:
@@ -124,7 +128,6 @@ async def start(
124
128
  registered_wfs, registered_acts, registered_deps = discover(
125
129
  workflows, act_names=activities, deps_name=dependencies
126
130
  )
127
- worker_id = create_worker_id(worker_id_prefix or "worker")
128
131
  client = await bootstrap_config.to_temporal_client()
129
132
  event_loop = asyncio.get_event_loop()
130
133
  async with bootstrap_worker(
@@ -31,18 +31,10 @@ class BaseModel(_BaseModel):
31
31
  model_config = merge_configs(icij_config(), no_enum_values_config())
32
32
 
33
33
 
34
- class BasePayload(_BaseModel):
35
- model_config = icij_config()
36
-
37
-
38
34
  class DatashareModel(BaseModel):
39
35
  model_config = merge_configs(BaseModel.model_config, lowercamel_case_config())
40
36
 
41
37
 
42
- class LowerCamelCaseModel(_BaseModel):
43
- model_config = merge_configs(icij_config(), lowercamel_case_config())
44
-
45
-
46
38
  @unique
47
39
  class TaskState(StrEnum):
48
40
  CREATED = "CREATED"
@@ -61,7 +61,6 @@ def init_project(name: str, path: Path) -> None:
61
61
  pyproject_toml = tomlkit.loads(pyproject_toml_path.read_text())
62
62
  pyproject_toml = _update_pyproject_toml(pyproject_toml, package_name=package_name)
63
63
  pyproject_toml_path.write_text(tomlkit.dumps(pyproject_toml))
64
- raise NotImplementedError("implement entry point and dockerfile init")
65
64
 
66
65
 
67
66
  _BASE_DEPS = {"datashare-python", "icij-common", "temporalio"}
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datashare-python
3
- Version: 0.2.26
3
+ Version: 0.3.0
4
4
  Summary: Manage Pythoœn 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=Diu7alKGaFWyC_ajp0fKU-xp8u5f_8x1axAHVBlp
8
8
  datashare_python/discovery.py,sha256=khWTm11NlMVkRyxPV1lJimcTTicuVdxWHOC4H6PfFwE,6128
9
9
  datashare_python/exceptions.py,sha256=bVHEAXxDPKfxeeMC0hJXEsrJkgsKO2ESAhxWU96GA4M,496
10
10
  datashare_python/local_client.py,sha256=GP9MTcHVQ1mcb2eO6TiQ7mzQdx199lZRhK8DRuJqJVQ,2359
11
- datashare_python/objects.py,sha256=GMi2hlKuWFbWWoC2r8ITQGQcMsobHHChGvm4ZfIjMl0,4537
11
+ datashare_python/objects.py,sha256=MbTdBHbNNYeWbc7vrWlu2DcJT0uCSvtrDIiPpfgI_s4,4356
12
12
  datashare_python/task_client.py,sha256=oTmP8bvZW0UyhLNMi1AV3XIAx7hrdbxNRss2Mw2azEc,8435
13
- datashare_python/template.py,sha256=fiDBKstNf-FdpdlvCzfsKhaLPLoQs6T6NQUlT6SwgYs,4099
13
+ datashare_python/template.py,sha256=RxKTYLXoS_EQ8Jc41JkBXppPdbCFqDWfP3BmC0gvB5o,4024
14
14
  datashare_python/types_.py,sha256=9Hk1XqpdXbM1TnEzwvJ5G9ABbaCZW9KgBTtiPBVn_7k,649
15
15
  datashare_python/utils.py,sha256=DQt-rBwC3Ok72u8VyerG3rqwUTx3ftLfPdMQ5cnRrgs,16801
16
- datashare_python/worker-template.tar.gz,sha256=78e5rLmnsu3YB79FD-KJjORP5aJ0MMwZg19jx9TkH8s,142345
16
+ datashare_python/worker-template.tar.gz,sha256=uarhX-BHryewAFwBZ98_PdA_QUKhApwlXfRYVIULbm0,142242
17
17
  datashare_python/worker.py,sha256=A4SnmDB4y0ck6Wp_UZWdsSOyTvW54Z2Bq76gxtp-_PE,6070
18
18
  datashare_python/cli/__init__.py,sha256=5MGSE_0SwlOiwbyPwsP8RIXlTBB2_GGP0zDg4l6UAIY,1479
19
19
  datashare_python/cli/local.py,sha256=S-7qMpSqzi0oMvu01TCFEb8tayEvpw4pXMdCszKEYtU,986
20
20
  datashare_python/cli/project.py,sha256=w32Gy9AOL5B00uDT4in7YUCt2g68FnNbvwg2M3a8G6o,946
21
21
  datashare_python/cli/task.py,sha256=9If5OC7loG4C4gWWl4iOeqPJ4GOLlCWXQfuNLUHORrQ,5860
22
22
  datashare_python/cli/utils.py,sha256=p69CQb0zfixuyBkiZprhdMCc_NuYwXyAn6vC9H1UzAw,911
23
- datashare_python/cli/worker.py,sha256=Gp8uZUbRdBz7CmuMrR9B705YbLOnIFSO3nLjQQnFgiE,5325
24
- datashare_python-0.2.26.dist-info/METADATA,sha256=0UgrH2IdGphlcdMbCyDgNE24GG9-_Vk2KV8BHUcVQ3E,908
25
- datashare_python-0.2.26.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
- datashare_python-0.2.26.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
- datashare_python-0.2.26.dist-info/RECORD,,
23
+ datashare_python/cli/worker.py,sha256=_LZFtv6O57Ez7XdRKmmwQ0b_5_8uFajPySv_jbzXbjI,5384
24
+ datashare_python-0.3.0.dist-info/METADATA,sha256=z7AVC4VL38lRzJZlcLHvrj6DVj1H4lWx35HBlZH0btQ,907
25
+ datashare_python-0.3.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
26
+ datashare_python-0.3.0.dist-info/entry_points.txt,sha256=ILE7auxabHWiu3GC-AunWnzjhOI_SbZp7D4GqZHlLw4,68
27
+ datashare_python-0.3.0.dist-info/RECORD,,