Azure / Azure/azure-functions-core-tools

Gracefully stop the functions host and propagate cancellation tokens

Open
#4,284 3 comments 0 reactions 0 assignees View on GitHub
area: host-lifecycle enhancement needs-design
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

### Description

Allow users to stop or terminate the function app. This action should trigger a cancellation token, similar to how it works in production when the platform shuts down a host instance, ensuring the token is propagated to the language workers. Pressing **Ctrl + C** is one such signal that terminates the process. Additionally, investigate termination signals across different operating systems, such as macOS.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the functions host handles Ctrl+C and other termination signals, then follow how cancellation is propagated to language workers. Compare behavior across the operating systems mentioned in the issue. Done means users can stop the local function app gracefully and workers receive the cancellation token consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.