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

Application doesn't shutdown on SIGINT #398

Closed
2color opened this issue May 26, 2021 · 4 comments
Closed

Application doesn't shutdown on SIGINT #398

2color opened this issue May 26, 2021 · 4 comments

Comments

@2color
Copy link

2color commented May 26, 2021

I recently added the Appsignal Node.js agent to an application and noticed that the application doesn't shut down anymore on SIGINT and SIGTERM.

I tried adding the following:

process.on('SIGINT', () => {
    appsignal.stop()
  })
  process.on('SIGTERM', () => {
    appsignal.stop()
  })

But the application still doesn't gracefully shut down.

Am I missing something?

@shairyar
Copy link
Member

Hey @2color since you sent this via email as well so I am going to close this and get back to you via email.

@shairyar
Copy link
Member

@hjvedvik
Copy link

hjvedvik commented Jun 8, 2021

@shairyar I'm experiencing the same issue. Would you mind posting the solution here too? :)

@shairyar
Copy link
Member

shairyar commented Jun 9, 2021

@hjvedvik Daniel ran into multiple issues and I created this PR to help him out, I have not heard back if he is still having the problem. Could you please write to us at support@appsignal.com with your case so we can look into it?

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

3 participants