tsx icon indicating copy to clipboard operation
tsx copied to clipboard

Configurable timeout in watch before force kill

Open jonasb opened this issue 6 months ago • 0 comments

Precheck

  • [X] I searched existing issues before opening this one to avoid duplicates
  • [X] I understand tsx aims for TypeScript parity and will not support arbitrary Node.js enhancements
  • [X] This request cannot be made to Node.js directly, and is specific to tsx
  • [X] I understand this form is not for addressing a bug or seeking help

Feature request

I would like to configure the 5s timeout before the process in force killed (Process didn't exit in 5s. Force killing...) when I've made changes in watch mode.

Either environment variable or a command line switch would do the job. If it would be possible to turn off the timeout (e.g. with 0 or a negative timeout), that would be nice.

Motivations

I have long running (but not infinite) requests running in my web server (up to a minute or so). I'd like for those to finish before the process is killed and restarted.

Alternatives

No response

Additional context

No response

Contributions

  • [ ] I plan to open a pull request for this issue
  • [ ] I plan to make a financial contribution to this project

jonasb avatar Jan 31 '24 14:01 jonasb