Skip to content

Commit 4238b27

Browse files
committed
grab worker count from tokio
1 parent 4d7284c commit 4238b27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/napi/src/next_api/turbopack_ctx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ pub fn create_turbo_tasks(
207207
turbo_tasks_backend::StorageMode::ReadWrite
208208
}),
209209
dependency_tracking,
210+
num_workers: Some(tokio::runtime::Handle::current().metrics().num_workers()),
210211
..Default::default()
211212
},
212213
Either::Left(backing_storage),

0 commit comments

Comments
 (0)