Azure / Azure/azure-functions-host

Is there a way to pause new Azure function requests?

Open
#7,241 8 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

Hello,
I am wondering if there is a way to pause the execution of new Azure function queue items on a specific moment without disrupting the execution of the currently running processes.

Imagine you have hundred of items in a queue that need to be processed and you have a couple of items that are still running. As an admin I might want to stop the Azure function picking up new items without stopping the service since I do not want to kill the running processes.

Is there a capability that we could use to achieve this goal?

Is there a way to implement an overload of the code that is picking up an item for a queue? I am thinking that we could use that event to check if there some file located on the Azure function that might tell it to behave as just mentioned.

Thank you for your feedback,
Patrick

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reviewing the Azure Functions host's existing queue-trigger lifecycle and administration controls; done would mean a documented or implemented way to stop new queue items while allowing currently running executions to finish.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.