-
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
On SIGKILL to turbo run
, tasks continue running (incompatible with Playwright testing)
#9666
Comments
This sounds like a duplicate of #3711. Would you agree? |
Could you please try your reproduction steps, but target the process group instead of the individual process e.g. Here are my results when I target the process group instead of just the individual process:
This is a result of what
When If you could try out the new |
@chris-olszewski thanks, I'll try targeting the group in the repro. I'm also wondering if the children are receiving @anthonyshew re whether this is a dupe of #3711 -- on the surface it's a different problem, but it's a possibility that issue is the root cause of this issue, in which case we could mark as a dupe, but needs more investigation to make that connection. |
@bencmbrook Can you provide a reproduction that uses Playwright in the way you're using it? That would be helpful for figuring out what is happening in your setup. |
Verify canary release
Link to code that reproduces this issue
This is purely in bash, please see simple repro steps below
Which canary version will you have in your reproduction?
Turborepo v2.3.4-canary.5
Enviroment information
Expected behavior
Child processes end when the parent receives SIGKILL. The child processes are the tasks turbo runs, such
pnpm run dev
in theapps/blog
workspaceActual behavior
Child processes remain running when the
turbo run
process receives SIGKILLTo Reproduce
turbo run dev
in any turborepo to start a dev server listening on port 3000. Such as the codebase fromnpx create-turbo@canary -e basic
ps | grep "turbo run dev"
56369
, but the output will depend on your Node installation.kill -9 56369
(replace56369
with your process ID)lsof -i:3000
To clean up the orphaned process, run
kill $(lsof -t -i:3000)
Additional context
Playwright sends SIGKILL when it is closed, so using Playwright + Turborepo results in this situation of hanging processes.
So, running Ctrl + C on the playwright test causes the web server to stay online when using
turbo
. I can confirm that this is not the case if you simply set the command tonext dev
(orpnpm run dev
aliased to it).Here are related Playwright issues, but about Docker, which has a similar issue with SIGKILL.
The text was updated successfully, but these errors were encountered: