Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
24c5ba0f
Commit
24c5ba0f
authored
Dec 22, 2025
by
Tobias Koppers
Committed by
Tobias Koppers
Jan 13, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove debug logging
parent
6f84503e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
priority_runner.rs
turbopack/crates/turbo-tasks/src/priority_runner.rs
+0
-12
No files found.
turbopack/crates/turbo-tasks/src/priority_runner.rs
View file @
24c5ba0f
...
@@ -100,7 +100,6 @@ impl<
...
@@ -100,7 +100,6 @@ impl<
// free capacity so we can just push the task to the queue.
// free capacity so we can just push the task to the queue.
// It will be picked up by existing workers.
// It will be picked up by existing workers.
inner
.queue
.push
(
HeapItem
{
priority
,
task
});
inner
.queue
.push
(
HeapItem
{
priority
,
task
});
println!
(
"Queue not empty, pushing task to queue."
);
return
;
return
;
}
}
// The queue is empty, so we might have free capacity to spawn a new worker.
// The queue is empty, so we might have free capacity to spawn a new worker.
...
@@ -109,8 +108,6 @@ impl<
...
@@ -109,8 +108,6 @@ impl<
// We have free capacity, spawn a new worker to execute this task immediately.
// We have free capacity, spawn a new worker to execute this task immediately.
drop
(
inner
);
drop
(
inner
);
println!
(
"Only {} active polls, spawning new worker."
,
active_polls
);
let
future
=
self
.executor
.execute
(
execute_context
,
task
);
let
future
=
self
.executor
.execute
(
execute_context
,
task
);
WorkerFuture
::
spawn
(
future
,
execute_context
.clone
(),
self
.clone
(),
true
);
WorkerFuture
::
spawn
(
future
,
execute_context
.clone
(),
self
.clone
(),
true
);
}
else
{
}
else
{
...
@@ -124,11 +121,8 @@ impl<
...
@@ -124,11 +121,8 @@ impl<
if
active_polls
>=
self
.target_workers
if
active_polls
>=
self
.target_workers
||
!
self
.spawn_worker_if_work_available
(
&
execute_context
,
true
)
||
!
self
.spawn_worker_if_work_available
(
&
execute_context
,
true
)
{
{
println!
(
"Queue empty, pushing task to queue, no free capacity."
);
// Undo the added active poll since we didn't spawn a new worker.
// Undo the added active poll since we didn't spawn a new worker.
self
.active_polls
.fetch_sub
(
1
,
Ordering
::
Relaxed
);
self
.active_polls
.fetch_sub
(
1
,
Ordering
::
Relaxed
);
}
else
{
println!
(
"Queue empty, pushing task to queue, spawn a new worker."
);
}
}
}
}
}
}
...
@@ -136,10 +130,6 @@ impl<
...
@@ -136,10 +130,6 @@ impl<
fn
pop_future_from_worker
(
&
self
,
execute_context
:
&
Arc
<
C
>
)
->
Option
<
E
::
Future
>
{
fn
pop_future_from_worker
(
&
self
,
execute_context
:
&
Arc
<
C
>
)
->
Option
<
E
::
Future
>
{
let
mut
inner
=
self
.inner
.lock
();
let
mut
inner
=
self
.inner
.lock
();
if
let
Some
(
heap_item
)
=
inner
.queue
.pop
()
{
if
let
Some
(
heap_item
)
=
inner
.queue
.pop
()
{
println!
(
"pop_future_from_worker: found task in queue with priority {:?}."
,
heap_item
.priority
);
Some
(
self
.executor
.execute
(
execute_context
,
heap_item
.task
))
Some
(
self
.executor
.execute
(
execute_context
,
heap_item
.task
))
}
else
{
}
else
{
None
None
...
@@ -260,8 +250,6 @@ impl<
...
@@ -260,8 +250,6 @@ impl<
// But we if there are free capacity we can spawn a new worker to pick up
// But we if there are free capacity we can spawn a new worker to pick up
// other tasks in the queue.
// other tasks in the queue.
println!
(
"WorkerFuture: Future is pending. Try to spawn a new worker..."
);
// Quick check if we can spawn a new worker from the existing active poll.
// Quick check if we can spawn a new worker from the existing active poll.
let
active_polls
=
this
.runner.active_polls
.load
(
Ordering
::
Relaxed
)
-
1
;
let
active_polls
=
this
.runner.active_polls
.load
(
Ordering
::
Relaxed
)
-
1
;
if
active_polls
>=
this
.runner.target_workers
if
active_polls
>=
this
.runner.target_workers
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment