apex / up

Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS.
https://up.docs.apex.sh
MIT License
8.8k stars 380 forks source link

Passing SIGINT signals inside the application. #843

Open anwesh-b opened 1 year ago

anwesh-b commented 1 year ago

Prerequisites

Description

I have an express application wrapped by up. I have following code:

process.on('SIGINT', () => {
  // Do some actions
});

As far as I know, the up is triggered once request reaches lambda. And any SIGINT signal received, reaches the up proxy, not the express application.

Is there any way to make the signal reach the application code as well?