File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class ComposeGreetingInput:
13
13
14
14
15
15
@workflow .defn
16
- class ComposeGreeting :
16
+ class ComposeGreetingWorkflow :
17
17
@workflow .run
18
18
async def run (self , input : ComposeGreetingInput ) -> str :
19
19
return f"{ input .greeting } , { input .name } !"
@@ -24,7 +24,7 @@ class GreetingWorkflow:
24
24
@workflow .run
25
25
async def run (self , name : str ) -> str :
26
26
return await workflow .execute_child_workflow (
27
- ComposeGreeting .run ,
27
+ ComposeGreetingWorkflow .run ,
28
28
ComposeGreetingInput ("Hello" , name ),
29
29
id = "hello-child-workflow-workflow-child-id" ,
30
30
)
@@ -38,7 +38,7 @@ async def main():
38
38
async with Worker (
39
39
client ,
40
40
task_queue = "hello-child-workflow-task-queue" ,
41
- workflows = [GreetingWorkflow , ComposeGreeting ],
41
+ workflows = [GreetingWorkflow , ComposeGreetingWorkflow ],
42
42
):
43
43
44
44
# While the worker is running, use the client to run the workflow and
You can’t perform that action at this time.
0 commit comments