Skip to content

Commit 736c5da

Browse files
committed
read task cell should only need Data
1 parent bba22c0 commit 736c5da

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • turbopack/crates/turbo-tasks-backend/src/backend

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -873,10 +873,10 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
873873
// Having a task_pair here is not optimal, but otherwise this would lead to a race
874874
// condition. See below.
875875
// TODO(sokra): solve that in a more performant way.
876-
let (task, reader) = ctx.task_pair(task_id, reader_id, TaskDataCategory::All);
876+
let (task, reader) = ctx.task_pair(task_id, reader_id, TaskDataCategory::Data);
877877
(task, Some(reader))
878878
} else {
879-
(ctx.task(task_id, TaskDataCategory::All), None)
879+
(ctx.task(task_id, TaskDataCategory::Data), None)
880880
};
881881

882882
let content = if final_read_hint {
@@ -979,7 +979,9 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
979979
TaskExecutionReason::CellNotAvailable,
980980
|| self.get_task_desc_fn(task_id),
981981
));
982-
ctx.schedule_task(task, TaskPriority::Initial);
982+
drop(task);
983+
984+
ctx.schedule(task_id, TaskPriority::Initial);
983985

984986
Ok(Err(listener))
985987
}

0 commit comments

Comments
 (0)