Skip to content

Commit 1881735

Browse files
committed
powershell threads
1 parent c786698 commit 1881735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-functions/functions-reference-powershell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ Depending on your use case, Durable Functions may significantly improve scalabil
596596
597597
### Considerations for using concurrency
598598

599-
PowerShell is a _single threaded_ scripting language by default. However, concurrency can be added by using multiple PowerShell runspaces in the same process. The amount of runspaces created will match the ```PSWorkerInProcConcurrencyUpperBound``` application setting. The throughput will be impacted by the amount of CPU and memory available in the selected plan.
599+
In version 4.x of the Functions runtime, Powershell max worker thread counts are unbounded. In version 3.x and below, PowerShell is single threaded by default. However, concurrency can be added by using multiple PowerShell runspaces in the same process. The amount of runspaces created can be defined by the ```PSWorkerInProcConcurrencyUpperBound``` application setting. The throughput will be impacted by the amount of CPU and memory available in the selected plan.
600600

601601
Azure PowerShell uses some _process-level_ contexts and state to help save you from excess typing. However, if you turn on concurrency in your function app and invoke actions that change state, you could end up with race conditions. These race conditions are difficult to debug because one invocation relies on a certain state and the other invocation changed the state.
602602

0 commit comments

Comments
 (0)