Unverified Commit 47bece4e authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

[Turbopack] fix dependencies on own task (#75658)

### What?

fixes a case where tasks where hanging or recomputed when they read they own cells
parent 65a68b62
......@@ -595,6 +595,11 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
return;
}
if let Some(reader) = reader {
if reader == task_id {
// We never want to have a dependency on ourselves, otherwise we end up in a
// loop of re-executing the same task.
return;
}
let _ = task.add(CachedDataItem::CellDependent {
cell,
task: reader,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment