diff --git a/crates/napi/src/next_api/project.rs b/crates/napi/src/next_api/project.rs index 1b753b60d677d..e4e195c5c8b79 100644 --- a/crates/napi/src/next_api/project.rs +++ b/crates/napi/src/next_api/project.rs @@ -384,8 +384,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 6991695021d9c..e5dd9cc4b06ae 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