Skip to content

Commit 45d78a0

Browse files
committed
reviewed my own code
1 parent b367478 commit 45d78a0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hello/hello_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def main():
5151
task_queue="hello-activity-task-queue",
5252
workflows=[GreetingWorkflow],
5353
activities=[compose_greeting],
54-
# Non-async activities require some kind of executor;
54+
# Non-async activities require an executor;
5555
# a thread pool executor is recommended.
5656
# This same thread pool could be passed to multiple workers if desired.
5757
activity_executor=ThreadPoolExecutor(5),

hello/hello_activity_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ async def main():
5050
task_queue="hello-activity-task-queue",
5151
workflows=[GreetingWorkflow],
5252
activities=[compose_greeting],
53-
# If the worker is running async activities, you don't need
53+
# If the worker is only running async activities, you don't need
5454
# to supply an activity executor because they run in
55-
# the event loop of the worker.
55+
# the worker's event loop.
5656
):
5757

5858
# While the worker is running, use the client to run the workflow and

0 commit comments

Comments
 (0)