Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Disabled functions with queue trigger still fire

Open sharpcoder28 opened this issue 9 years ago • 8 comments

Http triggers disable properly however queue trigger functions still fire:

image

sharpcoder28 avatar Oct 04 '17 19:10 sharpcoder28

Was this published via visual studio? or developed and implemented through the portal only?

It's been my experience that any changes such as state, must be "Redeployed" to take affect when using the visual studio tooling.

on the other side of that coin, when developing in the portal, the all the portal features work correctly.

we had a Scheduled Function that would fire every second (even when scheduled for once a day) when disabled manually through the portal. only when we added the [Disabled()] binding did the function actually disable. (we did not attempt to "Enable" it within the portal after deployment. let me know what you find.)

Thanks

skyhoshi avatar Oct 05 '17 17:10 skyhoshi

Yes it was published via visual studio. I shouldn't have to redeploy to disable a function. Thanks for the find. Is there a bug for this already?

sharpcoder28 avatar Oct 05 '17 19:10 sharpcoder28

I'm not sure actually, @lindydonna mentioned it on twitter to me.

skyhoshi avatar Oct 05 '17 19:10 skyhoshi

Just Remembered, To shut off the VS Deploy'd applications, you have to shut down them at the App Service Plan Level. (Meaning you have to delete the App Service Plan) ours was stuck in an error state. (kept running and "Consuming") this was about 2 months ago so maybe they have address it. i'm not sure. just make sure that if your using consumption, you "Redeploy with the correct settings" OR Delete your ASP associated with the functions (and the functions) or it will continue to consume, if your on a normal web ASP, it won't matter. it just affects the performance of whatever else is attached to it.

skyhoshi avatar Oct 05 '17 19:10 skyhoshi

Are there any plan to fix the same ? We also faced the same issue. Messages are being received by the function even as they are in disable state.

image

surenderssm avatar Jan 08 '18 17:01 surenderssm

Still encountering this issue, are there any updates?

RichardMisiak avatar Jun 27 '18 08:06 RichardMisiak

I'm experiencing the same. Using Azure Functions V2. Have a trigger bound to a Cosmos DB collection. I disabled my function, it still fired. I stopped my function app, function still fires.

Related: "Delete function" is grayed out on all my functions. How can we delete an individual function?

kenturley avatar Jun 29 '18 23:06 kenturley

Closing since referenced issue seems to resolve.

ColbyTresness avatar Mar 13 '19 19:03 ColbyTresness