Skip to content

Graceful Shutdown for template node18 functions #305

Open
@NikhilSharmaWe

Description

Expected Behaviour

When a function receives a SIGTERM signal the function should first handle the current ongoing requests before terminating the function.

Current Behaviour

Currently, when a function receives a SIGTERM signal, the function immediately terminates.

Are you a GitHub Sponsor (Yes/No?)

Check at: https://github.com/sponsors/openfaas

  • Yes
  • No

Which Solution Do You Recommend?

Handle the condition when a function recieves a SIGTERM signal. Wait for some graceful period before terminating if the function have an ongoing request, otherwise terminate without waiting.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions