Skip to content

Commit

Permalink
fix(watch): await aborted persistent run task
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Sep 16, 2024
1 parent f7aeea6 commit 6e11516
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/turborepo-lib/src/run/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ impl WatchClient {
{
// Shut down the tasks for the run
stopper.stop().await;
run_task.abort();
// Run should exit shortly after we stop all child tasks, wait for it to finish
// to ensure all messages are flushed.
let _ = run_task.await;
}
if let Some(sender) = &self.ui_sender {
let task_names = self.run.engine.tasks_with_command(&self.run.pkg_dep_graph);
Expand Down

0 comments on commit 6e11516

Please sign in to comment.