-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Interruptible tasks are terminated without being restarted #9421
Comments
I reproduced this issue easily in this repo All one should need to do is start with |
I also feel its worth sharing some logs, I ran with -vvv
Everything after
This is the log that killed the yarn dev in the express-server and I believe it shouldn't have been killed https://gist.github.com/choover-circle/49ff56968127c34e41fca5914cf4d1d4 Here are the full logs |
I temporarily fixed this using the new |
Another workaround that I found was to use the |
Verify canary release
Link to code that reproduces this issue
do i need to?
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
Turborepo v2.2.4-canary.9
Describe the Bug
I have three persistent apps: app (nextjs), api (node), and worker (node). My node projects are marked as
interruptible: true
in the Turbo config.I start my project using Turbo in watch mode. There are two different scenarios:
For example, when I change code in the Next.js app, my worker task changes the "progress icon status" to "done icon status" and the last log is:
My api task doesn't log anything and just hangs indefinitely. (it doesn't respond to any http requests etc so probably is killed)
I've tried different versions of Turbo, but none of them work.
Expected Behavior
If I change a task that is not a dependency of another persistent task, then the persistent task (marked as interruptible) should not receive SIGINT.
If this issue is difficult to fix, then at least add a restart mechanism for all interruptible tasks.
To Reproduce
Should be easy to reproduce in tests?
Additional context
No response
The text was updated successfully, but these errors were encountered: