azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Python/Linux Azure Function is taking a long time to execute and sometimes create new workers in the middle of concurrent calls

Open fritzcruz opened this issue 2 years ago • 0 comments

  • Timestamp: 2022-10-13T12:49:35Z
  • Function App version: Python ~4
  • Invocation ID: e865b2fe-a1b4-4180-95e4-28b79f5aad8d
  • Region: Australia East

Repro steps

Provide the steps required to reproduce the problem: We are in a consumption plan. After we invoke the azure function with 32 concurrent calls with 160~ calls overall, I noticed that at the first run it will finish the concurrent calls for around 2 minutes normally with cold start but it is sometimes intermittently do "Creating new webhost language worker channel for runtime:python." that will take around 2-3 minutes which increase the overall time to 4-5 minutes. This process normally runs within 30-40 seconds after the cold start.

Expected behavior

Provide a description of the expected behavior: It should not wait for that amount of time to execute or create the workers and it is sometimes happening in the middle of the concurrent calls.

Actual behavior

Provide a description of the actual behavior observed. It is intermittently observe when doing the concurrent calls.

Known workarounds

Provide a description of any known workarounds. None

Related information

Provide any related information

  • Programming language used: Python

fritzcruz avatar Oct 13 '22 13:10 fritzcruz