Skip to content

fix(watch): exit command if persistent task exits #8858

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

chris-olszewski
Copy link
Member

Description

Now exit if persistent tasks exit. Previously we would not check if persistent tasks exited leading to situations where the TUI would shut down, but we still had watch running.

Testing Instructions

Before:

Screen.Recording.2024-07-26.at.4.19.05.PM.mov

Notice that the TUI exits, but turbo does not.

After:

Screen.Recording.2024-07-26.at.4.15.48.PM.mov

Copy link

vercel bot commented Jul 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
rust-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 27, 2025 1:57pm

@chris-olszewski chris-olszewski marked this pull request as ready for review July 26, 2024 21:23
@chris-olszewski chris-olszewski requested a review from a team as a code owner July 26, 2024 21:23
@chris-olszewski chris-olszewski requested review from tknickman and dimitropoulos and removed request for a team July 26, 2024 21:23
Copy link
Contributor

github-actions bot commented Jul 26, 2024

🟢 CI successful 🟢

Thanks

Copy link
Contributor

🟢 Turbopack Benchmark CI successful 🟢

Thanks

@NicholasLYang
Copy link
Contributor

Only note I have is that we could probably create an integration test for this

@chris-olszewski
Copy link
Member Author

Resurrecting this PR in response to #10122

This never got merged as adding the suggested integration test uncovered a race condition in this PR. Race was that sometimes logs for the exited persistent task would get printed twice. 🙃

@vercel vercel bot temporarily deployed to Preview – turbo-site March 12, 2025 16:15 Inactive
@dimitropoulos dimitropoulos removed their request for review June 4, 2025 13:19
@anthonyshew anthonyshew mentioned this pull request Jun 26, 2025
chris-olszewski pushed a commit that referenced this pull request Jun 26, 2025
I'm 0% certain that this is a structurally sound change - but it does
fix the logs regression in
#8858.
@chris-olszewski chris-olszewski force-pushed the olszewski/fix_watch_exit_on_persitent_exit branch from f1b1eb1 to bc91f53 Compare June 26, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants