Skip to content

Commit 6fcb09d

Browse files
authored
Fix suffix for Workflow name (#74)
1 parent f6a954e commit 6fcb09d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hello/hello_child_workflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)