Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing SIGINT signals inside the application. #843

Open
2 of 4 tasks
anwesh-b opened this issue Feb 10, 2023 · 0 comments
Open
2 of 4 tasks

Passing SIGINT signals inside the application. #843

anwesh-b opened this issue Feb 10, 2023 · 0 comments

Comments

@anwesh-b
Copy link

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant