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