From c77f0941d4bd2626c1a2fd4ef286ae545867ad4a Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 19 Sep 2024 15:43:58 +0200 Subject: [PATCH] Revert "workaround for missing active tracking" This reverts commit d41ced75b26ed9d7bde515c66ef54a9d40df0b1a. --- crates/napi/src/next_api/project.rs | 2 -- turbopack/crates/turbo-tasks/src/manager.rs | 9 --------- 2 files changed, 11 deletions(-) diff --git a/crates/napi/src/next_api/project.rs b/crates/napi/src/next_api/project.rs index 61b534206bf17..df20d341d7094 100644 --- a/crates/napi/src/next_api/project.rs +++ b/crates/napi/src/next_api/project.rs @@ -375,8 +375,6 @@ pub async fn project_new( .await .inspect_err(|err| tracing::warn!(%err, "failed to benchmark file IO")) }); - // TODO remove this: Workaround for missing active tracking - turbo_tasks.wait_primary_jobs_done().await; Ok(External::new_with_size_hint( ProjectInstance { turbo_tasks, diff --git a/turbopack/crates/turbo-tasks/src/manager.rs b/turbopack/crates/turbo-tasks/src/manager.rs index 81d23c39187d7..8d165c8cb19de 100644 --- a/turbopack/crates/turbo-tasks/src/manager.rs +++ b/turbopack/crates/turbo-tasks/src/manager.rs @@ -1044,15 +1044,6 @@ impl TurboTasks { } } - pub async fn wait_primary_jobs_done(&self) { - let listener = self - .event - .listen_with_note(|| "wait_primary_jobs_done".to_string()); - if self.currently_scheduled_tasks.load(Ordering::Acquire) != 0 { - listener.await; - } - } - pub async fn wait_background_done(&self) { let listener = self.event_background.listen(); if self