We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc49bce commit 4ea0a21Copy full SHA for 4ea0a21
store/postgres/src/deployment_store.rs
@@ -1181,13 +1181,20 @@ impl DeploymentStore {
1181
// how long pruning itself takes
1182
let _section = stopwatch.start_section("transact_blocks_prune");
1183
1184
- self.spawn_prune(
+ if let Err(res) = self.spawn_prune(
1185
logger,
1186
- site,
+ site.cheap_clone(),
1187
layout.history_blocks,
1188
earliest_block,
1189
batch.block_ptr.number,
1190
- )?;
+ ) {
1191
+ warn!(
1192
+ logger,
1193
+ "Failed to spawn prune task. Will try to prune again later";
1194
+ "subgraph" => site.deployment.to_string(),
1195
+ "error" => res.to_string(),
1196
+ );
1197
+ }
1198
}
1199
1200
Ok(())
0 commit comments