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

Request for Customizable Shutdown Time in Nexe Packaged Node.js Applications #1059

Open
soumyamitragit opened this issue Sep 21, 2023 · 1 comment
Labels

Comments

@soumyamitragit
Copy link

soumyamitragit commented Sep 21, 2023

What would you like to be added: I would like the ability to configure the termination wait time in Nexe-packaged Node.js applications. Currently observed at 5 seconds, having this as a customizable option would facilitate critical tasks just before application termination.

Why is this needed: I have recently encountered a specific use case where the current behavior of Nexe poses a challenge. When running a Nexe-packaged Node.js service, a command prompt window remains open. If this command prompt is accidentally closed, Nexe currently provides a default wait time of 5 seconds (as observed) before the application is terminated.

However, in certain situations, I require more than the observed 5 seconds to perform critical tasks just before the application's termination. As such, I am writing to inquire if there is an existing configuration or if you would consider adding a feature that allows users to customize this termination wait time based on their specific requirements.

@benallfree
Copy link

Have you looked at https://npmjs.com/package/exit-hook?

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

No branches or pull requests

2 participants