Share via

Durable Python Azure Function not parallelizing activity function, need help debugging

Stefan 1 Reputation point
2021-06-08T12:32:22.397+00:00

Hello ! I'm trying to parallelize a relatively computationally intensive series of calculations inside a Python Durable Activity function. When I run/test it locally it works (in series, not in parallel). When I deploy the function app to the cloud and trigger the orchestrator the status uri tells me the function is running, but when I look at the monitoring section I see only 1 function executed at a time when I expect to see ~50. It's unclear to me how to debug this, I've looked at the log stream and don't see any hints as to what the issue could be. I got parallelization to work with a basic Python function that sleeps for 5 seconds. Any help/guidance is much appreciated, thanks!

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 27,671 Reputation points Microsoft Employee Moderator
    2021-06-09T18:18:10.327+00:00

    Hello @Stefan , apologies for the delay in my response.
    Below are some points which I will like to highlight and I think are helpful in resolving the issues related to scaling of Python Durable Function Apps

    1. I think it will be helpful if you could go through the documentation for Scale and Performance for Python Function Apps. You can go through the Async section and the FUNCTIONS_WORKER_PROCESS_COUNT and see if any particular setting is causing the issue mentioned above.
    2. On Durable front, in Language runtime considerations section of Performance and scale in Durable Functions you can explore more on the properties like maxConcurrentOrchestratorFunctions and maxConcurrentActivityFunctions and see what settings work best for you in achieving the desired scalability.
    3. I found the explanations made by Connor on this issue very insightful in understanding some concepts related to performance of Durable Python function Apps.

    Please let me know if there any concerns. Thank you!

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.