VirusTotalNet icon indicating copy to clipboard operation
VirusTotalNet copied to clipboard

Graceful Shutdown for template node18 functions

Open NikhilSharmaWe opened this issue 2 years ago • 0 comments

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
  • [x] 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.

NikhilSharmaWe avatar May 26 '23 07:05 NikhilSharmaWe