我在Azure上使用会话队列,当我在队列上推送一些数据时,我编写了一个Azure函数来触发.
I am using session queue on Azure and when I push some data on queue,I write one Azure function to trigger.
请注意,我已经创建了基于statefull/session的队列.
Please note that I have created statefull/session based queue.
问题是,当我此时将数据推送到队列中时,出现了
The problem is when I push data to queue at that moment I got error like
函数"xxx"的侦听器无法启动. Microsoft.ServiceBus:不可能有需要的实体 会话以创建非会话式消息接收器
The listener for function 'xxx' was unable to start. Microsoft.ServiceBus: It is not possible for an entity that requires sessions to create a non-sessionful message receiver
所以我的问题是我不能在会话中使用带有队列/主题的功能吗?
So my question is am I not able to use function with queue/topic with session?
推荐答案2020年更新:
设置 function.json中的"> isSessionsEnabled 属性.
Set isSessionsEnabled property in your function.json.
这是一个常见问题,但是当前Web Jobs SDK以及Azure Functions不支持Service Bus会话.参见 WebJobs SDK问题;不幸的是,创建三年后没有任何进展.在 Azure函数问题中添加+1.
This is a common ask, but currently Web Jobs SDK, and thus Azure Functions, don't support Service Bus sessions. See WebJobs SDK issue; unfortunately there's no progress 3 years after it was created. Add a +1 in Azure Functions issue.
更多推荐
具有Azure功能的基于会话的服务总线
发布评论