Hello @David Meltzer
On the Flex Consumption Plan, the FUNCTIONS_WORKER_PROCESS_COUNT
setting is not available, so the implication is that the plan will always use one worker process per instance.
Therefore, the durableTask/maxConcurrentActivityFunctions
should be limited to the PYTHON_THREADPOOL_THREAD_COUNT
.
You can set the durable
trigger type and set perInstanceConcurrency
with az functionapp scale config set
to configure the concurrency limits for the Durable Functions.
Alternatively, you can also configure the concurrency limits for activity, orchestrator, and entity functions in the host.json
file using the durableTask/maxConcurrentActivityFunctions
and durableTask/maxConcurrentOrchestratorFunctions
settings.
These settings control the maximum number of orchestrator, entity, or activity functions that are loaded into memory on a single worker. Please note that the language runtime you select may impose strict concurrency restrictions on your functions. For example, Durable Function apps written in Python or PowerShell may only support running a single function at a time on a single VM. If the language runtime you are using places a restriction on concurrency, you should update the Durable Functions concurrency settings to match the concurrency settings of your language runtime.
This should get you started.