Azure Service Bus negative amount of scheduled messages

可紊 提交于 2019-12-14 02:00:48

问题


I need to get a message from queue in some special time. So I use scheduled message in queue. I send messages via ScheduleMessageAsync method.

For getting messages I use Azure Web Job with ServiceBusTrigger.

I send a couple of messages, everything works fine on my side, but in Azure Portal, if I go to page with my queue I see that I have negative amount of messages in queue.

I had this problem some days ago, but then it disappeared, but now appears again.

Is it problem in my logic or just a bug in UI of Azure?

UPD: I had an unhandled exception in my web job, so, it seems like the problem was because of this.

But I still don't know why counter became less than 0

来源:https://stackoverflow.com/questions/51927398/azure-service-bus-negative-amount-of-scheduled-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!