Skip to content

Important delay between invocation post and function execution #1042

@MarcGiannuzzi

Description

@MarcGiannuzzi

Stack: Python 3.7
Runtime: 4.0
Service Plan: B3:3

FUNCTIONS_WORKER_PROCESS_COUNT=3
PYTHON_THREADPOOL_THREAD_COUNT=32

Hi,

I am encountering an issue with a HTTP triggered function.

Azure log appearing at time T (just after log telling that "Request successfully matched the route..."):
Verbose log at time T is: Posting invocation id:xyz... on workerId:zyx...

Personal python function log (first line of the function when triggered) appears in the logs at T + someTime.
Here, someTime is random, but often is greater than 1 minute.

For that specific transaction/operation, there isn't anything between the two logs mentioned above.

That issue happens a lot (relatively), and randomly, resulting in many requests that take more than 1 minute, whereas it is supposed to be run in some ms.

Not any failure has been recorded inside the metrics.
Furthermore, memory and CPU usage are OK for the three workers. No need to scale up/down.
No other function is running on the function App, and no other app is running on the plan.

The function is often called and works well when that issue does not appear. Function is running asynchronously.

Please help.
Thank you in advance.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions