An Azure service that provides an event-driven serverless compute platform.
Thank you for reaching out to Microsoft Q&A.
It sounds like you're encountering a common scenario with Azure Functions under the Flex Consumption plan. The issue is that a queue-triggered function may not automatically start unless there's an always-ready instance, which is designed to minimize cold starts when processing messages.
Here's what you can try:
Understanding Flex Consumption: Unlike the Premium plan, Flex Consumption may require that the function be warmed up to process incoming messages. This can delay the processing of queued messages if there isn't an always-ready instance available.
Timer Trigger: One approach to mitigate this is to add a timer-triggered function that keeps the Function App "warm". This function can run at specified intervals (like every 5 minutes) to ensure that the app doesn't go idle, which helps in keeping the queue-triggered function ready to process messages.
Check Settings: Also, double-check your function app settings to ensure that:
- The function is enabled.
- The queue trigger settings are properly configured.
Unfortunately, for now, having at least one always-ready instance might be the best solution for immediate processing without delays.