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

fix(watch): ensure TUI is shutdown regardless of exit path #9408

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

chris-olszewski
Copy link
Member

Description

I noticed in #9389 that the TUI wasn't exiting if watch exited from anything other than a Ctrl-C (including a direct SIGINT to the process). This PR ensures that we shut down the TUI and the persistent task handle regardless of how watch.start() exits.

Testing Instructions

  • Start up a watch task turbo_dev watch dev
  • Find the pid file via turbo_dev daemon status
  • Kill the daemon kill $(cat /path/to/pid/file)

Before
Screenshot 2024-11-07 at 5 42 22 PM

After
Screenshot 2024-11-07 at 5 39 08 PM

Copy link

vercel bot commented Nov 7, 2024

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

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 10:42pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-gatsby-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-native-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-svelte-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-tailwind-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm
examples-vite-web ⬜️ Ignored (Inspect) Nov 7, 2024 10:42pm

@chris-olszewski chris-olszewski marked this pull request as ready for review November 7, 2024 22:42
@chris-olszewski chris-olszewski requested a review from a team as a code owner November 7, 2024 22:42
@chris-olszewski chris-olszewski merged commit 1a9214e into main Nov 8, 2024
40 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/chore_close_tui_on_watch_exit branch November 8, 2024 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants