Skip to content

Graceful Shutdown for template node18 functions #305

Description

@NikhilSharmaWe

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.

Activity

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

Metadata

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