-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Allow to gracefully shutdown persistent tasks #4274
Comments
This issue is equivalent to pnpm/pnpm#2653 (comment) |
Appears like this is a regression |
Lately I have been having issues where hitting command + c will appear to stop the process in the terminal, but the app will still be running on the port. Is this the same issue you are referring to @gajus ? |
@williamlmao we had a regression in 1.8.4 released yesterday which was fixed in 1.8.5 released earlier today, could you try that? |
I was using 1.8.3 when posting this, so probably a distinct issue from what @arlyon is referring to. Mine is about waiting for the script to actually complete before force exiting turbo. In ideal world, the way this would work is that the first time |
@gajus How are you invoking turbo? I've been digging into this and have been getting vastly different results depending on if you invoke turbo globally or via a package manager. |
Yeah, pnpm has the same flaw I was reporting what the behaviour is if directly invoking turbo though, i.e. |
Chiming in here with the same issue in a simple launch script that we need to run with turbo in persistent mode. This is the result of running the script directly in the terminal from the monorepo with barakchamo@barak store % Stopping local Postgres
[+] Stopping 2/2
✔ Container store-pg_proxy-1 Stopped
✔ Container store-postgres-1 Stopped
canceled
[+] Running 3/0
✔ Container store-pg_proxy-1 Removed
✔ Container store-postgres-1 Removed
✔ Network store_default Removed And this is the result of running the script from the monorepo root via turbo
There's no issue running the launch script with a package manager, |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Which project is this feature idea for?
Turborepo
Describe the feature you'd like to request
At the moment, as soon
turbo
receives SIGINT it kills the child process.Describe the solution you'd like
I would like to be able to gracefully handle the shutdown.
Describe alternatives you've considered
Not using turbo
The text was updated successfully, but these errors were encountered: