Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Disable attribute in Isolated worker process #9693

Open
tbasallo opened this issue Nov 18, 2023 · 2 comments
Open

Support Disable attribute in Isolated worker process #9693

tbasallo opened this issue Nov 18, 2023 · 2 comments
Assignees

Comments

@tbasallo
Copy link

What problem would the feature you're requesting solve? Please describe.

We have many functions that we do not want to run while in development. For the in-process worker we can use the [Disable] attribute using a compiler flag (DEBUG). This ensures that the function will never run when in development.

This is critical for projects that have functions with timers and queues. Otherwise, they would start firing.

We could use the settings file. But every time you clone the project you would have to get this form somewhere, which may or may not be updated.

Describe the solution you'd like

Be able to disable functions using a compiler flag and the attribute that exists in the in-process worker:
#if DEBUG
[Disable()]
#endif

Describe alternatives you've considered

Using the settings file, but that is not persisted and can get out of sync.

@bhagyshricompany
Copy link

Thanks for reporting will update on this.Thanks

@gallivantor
Copy link

Already reported here I think: Azure/azure-functions-dotnet-worker#1398

Definitely agree that this is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants