-
Notifications
You must be signed in to change notification settings - Fork 121
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
Hangs on restarting. #69
Comments
I tried with the --debug flag:
Looks like maybe the child process won't quit? This is ts-node-dev edit: I suppose I should add that I am running ts-node-dev via
|
See docs:
Try maybe it would work for your case. |
Yep that worked, thanks! |
Oh maybe I should add though, I don't think that the app is running heavy child processes. It's an express app, so it's listening on some port, but I've had bigger express apps continue to refresh with ts-node-dev just fine. Back when I was debugging this, I tried turning off a few different parts of it, and couldn't figure out what the culprit was between my 1 express app that respected the SIGTERM and my new app that didn't. |
I too don't know exactly what may cause it, I actually met with some apps that spawned other processes like (chrome headless, etc). Anyway, I always process SIGTERM in apps because kubernetes cluster sends the signal before it is going to shut down the container, so the app may stop its work gracefully, and in dev mode, I just do |
The hangs on restarting can also happen because of a bad exception handling : #120 |
I have gotten this problem when using Apparently, giving this flag to my npm script also does this magic:
|
There's no lag nor delay nor CPU usage. I just get a message such as:
And nothing else. It never actually restarts or rebuilds the project. How do I debug this?
The text was updated successfully, but these errors were encountered: