File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class ComposeGreetingInput:
1313
1414
1515@workflow .defn
16- class ComposeGreeting :
16+ class ComposeGreetingWorkflow :
1717 @workflow .run
1818 async def run (self , input : ComposeGreetingInput ) -> str :
1919 return f"{ input .greeting } , { input .name } !"
@@ -24,7 +24,7 @@ class GreetingWorkflow:
2424 @workflow .run
2525 async def run (self , name : str ) -> str :
2626 return await workflow .execute_child_workflow (
27- ComposeGreeting .run ,
27+ ComposeGreetingWorkflow .run ,
2828 ComposeGreetingInput ("Hello" , name ),
2929 id = "hello-child-workflow-workflow-child-id" ,
3030 )
@@ -38,7 +38,7 @@ async def main():
3838 async with Worker (
3939 client ,
4040 task_queue = "hello-child-workflow-task-queue" ,
41- workflows = [GreetingWorkflow , ComposeGreeting ],
41+ workflows = [GreetingWorkflow , ComposeGreetingWorkflow ],
4242 ):
4343
4444 # 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