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

Configurable timeout in watch before force kill #469

Open
4 of 6 tasks
jonasb opened this issue Jan 31, 2024 · 0 comments
Open
4 of 6 tasks

Configurable timeout in watch before force kill #469

jonasb opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request watch

Comments

@jonasb
Copy link

jonasb commented Jan 31, 2024

Precheck

  • I searched existing issues before opening this one to avoid duplicates
  • I understand tsx aims for TypeScript parity and will not support arbitrary Node.js enhancements
  • This request cannot be made to Node.js directly, and is specific to tsx
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request watch
Projects
None yet
Development

No branches or pull requests

2 participants