azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

[Azure function]Please support [Disable] attribute for isolated-worker mode

Open qcnguyen opened this issue 2 years ago • 9 comments

hi team, in Azure function isolated-worker mode, we need something similar to [Disable] attribute - which available in in-process mode. Because we want the ability to disable many functions / group of functions easily , it can only be done with [Disable] attribute. Thank you

qcnguyen avatar Dec 28 '23 03:12 qcnguyen

Thanks for reporting will discuss and update.

bhagyshricompany avatar Jan 02 '24 08:01 bhagyshricompany

+1 here.

luismanez avatar Jan 30 '24 19:01 luismanez

+1 here And also [Singleton] support in isolated.

wouter-b avatar Feb 22 '24 09:02 wouter-b

Providing an update here.

Although the DisabledAttribute works in some contexts, there are several scenarios where the in-proc behavior leads to issues. In order for us to bring this functionality forward to isolated, some additional platform and host work would need to be completed to make sure the current issues are addressed. This is particularly important in the newer Flex consumption SKU, as it could lead to problems that could potentially cause over scaling (and higher bills).

The host change is tracked by https://github.com/Azure/azure-functions-host/issues/10216. Once that's in place, the platform would also need to be updated.

fabiocav avatar Jun 11 '24 20:06 fabiocav