Skip to content

Commit

Permalink
fix(turborepo): Persistent tasks in watch mode (#8107)
Browse files Browse the repository at this point in the history
### Description

Fixing persistent tasks in watch mode. I accidentally reversed the
dependency relation which created a circular dependency which in turn
caused a deadlock.

### Testing Instructions

Try out `turbo watch dev` in create turbo

Closes TURBO-3020
  • Loading branch information
NicholasLYang authored May 9, 2024
1 parent c58d619 commit 021f9a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl Engine<Built> {
continue;
}

new_graph.add_edge(root_index, index, ());
new_graph.add_edge(index, root_index, ());
}

let task_lookup: HashMap<_, _> = new_graph
Expand Down

0 comments on commit 021f9a0

Please sign in to comment.