Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

azureservicebus - Azure durable function log stream showing deleted function

I have deployed a change to a durable function product into Azure DevOps and part of the work was to rename an activity function.

However the warning below is appearing in the log stream containing the old name for the function.

[Warning] Activity function 'PublishNotification' does not exist.. InstanceId: . Function: PublishNotification.

enter image description here

This function publishes a message to a Service bus topic, and there is definitely now no reference to that function name anywhere in the code.

Any ideas where this might be coming from?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

From your description, it seems that your function name has been changed, the orchestrator function listener and other function listeners are been deregistered:

https://github.com/Azure/azure-functions-durable-extension/blob/f6f1dce716b68d8baaa99ed64a9db1306577c58d/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskListener.cs#L44-L54

But the orchestrator function is still running, and it cannot find your previous function name:

https://github.com/Azure/azure-functions-durable-extension/blob/f6f1dce716b68d8baaa99ed64a9db1306577c58d/src/WebJobs.Extensions.DurableTask/DurableOrchestrationContext.cs#L385

If you restart the function app and let everything start again, can you still reproduce this error?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...