Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pipeline): precommit scheduling #764

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion storage-provider/server/src/pipeline/add_piece.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ pub async fn add_piece(
fill_percentage,
fill_threshold,
);
return state.send_pre_commit(sector_number);

// Schedule a new precommit to be executed immediately
schedule_pre_commit(state.clone(), tracker, sector_number, Duration::ZERO).await;
return Ok(());
}
tracing::debug!(
%sector_number,
Expand All @@ -76,6 +79,7 @@ pub async fn add_piece(
state.server_info.sealing_configuration.wait_deals_delay,
duration_to_deal_start,
);

// We always try to schedule a new pre-commit
schedule_pre_commit(state.clone(), tracker, sector_number, when).await;

Expand Down
Loading