Unverified Commit 5146e4c5 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: Persisting happens in foreground tasks (#83020)

### What?

Background tasks will only run when idle, but persisting should also happen when active.
parent 6964259f
......@@ -1215,7 +1215,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
if self.should_persist() {
// Schedule the snapshot job
turbo_tasks.schedule_backend_background_job(TurboTasksBackendJob::InitialSnapshot);
turbo_tasks.schedule_backend_foreground_job(TurboTasksBackendJob::InitialSnapshot);
}
}
......@@ -2215,7 +2215,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
Ordering::Relaxed,
);
turbo_tasks.schedule_backend_background_job(
turbo_tasks.schedule_backend_foreground_job(
TurboTasksBackendJob::FollowUpSnapshot,
);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment