Does making an async call from task activity, release the task hub worker, similar to C# releasing the thread #3197
-
As per my understanding when an async call is made in C#, the calling thread is released for other work. When the async call completes, another worker thread is used to resume execution. Similarly, when a remote async call is made from a task hub worker task-activity, is the worker blocked till the remote call completes or is it available for other task execution? If it is the former, are there any challenges wrt releasing it for other work. It is possible that the workers may exhausted when the original action completes, but that is a generic problem, execution has to wait till a worker is available. Please let me know your thoughts. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Each activity function is internally triggered by a worker thread from the .NET thread pool, so one activity's execution will never block another activity's execution. Many activities can be run in parallel, up to the configured maximum concurrency limit. Documentation on concurrency limits can be found here. |
Beta Was this translation helpful? Give feedback.
Each activity function is internally triggered by a worker thread from the .NET thread pool, so one activity's execution will never block another activity's execution. Many activities can be run in parallel, up to the configured maximum concurrency limit. Documentation on concurrency limits can be found here.