File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ),
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments