Skip to content

Commit adee32d

Browse files
committed
Pass through imports
1 parent 3f1dd8f commit adee32d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

hello_nexus/basic/caller/workflows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from temporalio import workflow
22
from temporalio.workflow import NexusClient
33

4-
from hello_nexus.basic.service import MyInput, MyNexusService, MyOutput
4+
with workflow.unsafe.imports_passed_through():
5+
from hello_nexus.basic.service import MyInput, MyNexusService, MyOutput
56

67
NEXUS_ENDPOINT = "my-nexus-endpoint"
78

hello_nexus/basic/handler/workflows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from temporalio import workflow
22

3-
from hello_nexus.basic.service import MyInput, MyOutput
3+
with workflow.unsafe.imports_passed_through():
4+
from hello_nexus.basic.service import MyInput, MyOutput
45

56

67
# This is the workflow that is started by the `my_workflow_run_operation` nexus operation.

0 commit comments

Comments
 (0)