Skip to content

Commit 9e82613

Browse files
committed
modify dependencies
1 parent 9db26e6 commit 9e82613

File tree

9 files changed

+801
-935
lines changed

9 files changed

+801
-935
lines changed

Diff for: cloud_export_to_parquet/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is an example workflow to convert exported file from proto to parquet file.
44

55
Please make sure your python is 3.9 above. For this sample, run:
66

7-
poetry install
7+
poetry install --with cloud_export_to_parquet
88

99
Before you start, please modify workflow input in `create_schedule.py` with your s3 bucket and namespace. Also make sure you've the right AWS permission set up in your environment to allow this workflow read and write to your s3 bucket.
1010

Diff for: cloud_export_to_parquet/__init__.py

Whitespace-only changes.

Diff for: cloud_export_to_parquet/create_schedule.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
ScheduleSpec,
1111
WorkflowFailureError,
1212
)
13-
from workflows import ProtoToParquet, ProtoToParquetWorkflowInput
13+
14+
from cloud_export_to_parquet.workflows import (
15+
ProtoToParquet,
16+
ProtoToParquetWorkflowInput,
17+
)
1418

1519

1620
async def main() -> None:

Diff for: cloud_export_to_parquet/poetry.lock

-388
This file was deleted.

Diff for: cloud_export_to_parquet/pyproject.toml

-18
This file was deleted.

Diff for: cloud_export_to_parquet/run_worker.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import asyncio
22
from concurrent.futures import ThreadPoolExecutor
33

4-
from data_trans_activities import data_trans_and_land, get_object_keys
54
from temporalio.client import Client
65
from temporalio.worker import Worker
76
from temporalio.worker.workflow_sandbox import (
87
SandboxedWorkflowRunner,
98
SandboxRestrictions,
109
)
11-
from workflows import ProtoToParquet
10+
11+
from cloud_export_to_parquet.data_trans_activities import (
12+
data_trans_and_land,
13+
get_object_keys,
14+
)
15+
from cloud_export_to_parquet.workflows import ProtoToParquet
1216

1317

1418
async def main() -> None:
@@ -25,7 +29,7 @@ async def main() -> None:
2529
workflow_runner=SandboxedWorkflowRunner(
2630
restrictions=SandboxRestrictions.default.with_passthrough_modules("boto3")
2731
),
28-
activity_executor=ThreadPoolExecutor(5),
32+
activity_executor=ThreadPoolExecutor(100),
2933
)
3034
await worker.run()
3135

Diff for: cloud_export_to_parquet/workflows.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from temporalio.exceptions import ActivityError
66

77
with workflow.unsafe.imports_passed_through():
8-
from data_trans_activities import (
8+
from cloud_export_to_parquet.data_trans_activities import (
99
DataTransAndLandActivityInput,
1010
data_trans_and_land,
1111
get_object_keys,

Diff for: poetry.lock

+778-523
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+9
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,12 @@ ignore_errors = true
9797
[[tool.mypy.overrides]]
9898
module = "opentelemetry.*"
9999
ignore_errors = true
100+
101+
[tool.poetry.group.cloud_export_to_parquet]
102+
optional = true
103+
[tool.poetry.group.cloud_export_to_parquet.dependencies]
104+
pandas = {version = "^2.2.2",python = ">=3.9,<4.0"}
105+
numpy = {version = ">=1.26.0",python = ">=3.9,<3.13"}
106+
pyarrow = "^16.0.0"
107+
boto3 = "^1.34.89"
108+

0 commit comments

Comments
 (0)