Azure / Azure/Azure-Functions

Azure Function Service Bus trigger goes idle when no messages are present in the Topic (Consumption Plan)

Open
#2,380 12 comments 0 reactions 1 assignee Claimed by @vijaykumar911 View on GitHub
Needs: Triage (functions)
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Hi,

We are encountering a strange issue / strange behaviour in our Azure Service Bus Trigger.

The purpose we are trying to fullfill:

- Everytime a message is sent to the Service Bus Topic, we would expect that (even after a short delay ..) the trigger picks up the message and the function processes this.

The error / issue that we encounter:
- It looks like, after the function initially processed all the messages in the Topic, the function goes idle and it doesn't automatically wakes up when new messages are present on the Service Bus Topic.

We checked a lot of possible scenarios & analyzed the behaviour:
- Going to the UI of the function or the parameters in the portal wakes the function up
- Scrolling through the appsettings in the portal wakes the function up
- Redeploying through CI/CD also wakes the function up

Then, after the function processed all the messages in the topic, it goes idle again and it doesn't wake up automatically.

I've already read a lot of issues on this but those trace back to 2017-2018 and all the issues were related to the connectionstring not having 'Manage' access so the scale controller could not fire. We use a connectionstring and the connectionstring has manage rights so this issue should in our case not be present.

Time Range (UTC +2):
![image](https://github.com/Azure/Azure-Functions/assets/44161789/e725f29d-23cf-4168-b3ed-a1357887b66b)

Function Log:

2023-05-31 09:24:50.918

Executed 'LoggingOrchestrator_EventTrigger' (Succeeded, Id=c2ddddbd-51eb-4387-a550-7d4113f881ed, Duration=194ms)

Host.json
![image](https://github.com/Azure/Azure-Functions/assets/44161789/60e7b20d-56cb-4259-a4e5-a633bb7d875f)
![image](https://github.com/Azure/Azure-Functions/assets/44161789/5f36cda3-0972-4db1-a6cf-5b56ed2c700e)

_Kindly let me know if you require more information or logs on this issue and i'll gladly provide those._

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.