docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

feat: graceful termination of the init process

Open clementrey-dev opened this issue 4 years ago • 1 comments

Dear maintainers

This pull request is a proposed implementation for the graceful termination of the init process through two modifications

  • a timeout named a graceful termination that corresponds to the time, starting when the SIGTERM is received, after which the init process is over
  • a new HTTP endpoint (/runtime/stop) for shutting down properly the init process

Thank you

clementrey-dev avatar Apr 12 '21 20:04 clementrey-dev

Have a use case for this as well since I need to test proper handling of sigterm traps for my runtime. Thanks for putting the work in for this.

steve-a-jones avatar Apr 21 '21 16:04 steve-a-jones