Fail flow recovery on partial recreate errors

This commit is contained in:
copilot-swe-agent[bot]
2026-06-10 10:17:35 +00:00
committed by GitHub
parent 7c40654336
commit f1574d940d
+11 -4
View File
@@ -412,10 +412,17 @@ impl FlowDualEngine {
}
if errors.is_empty() {
info!("Recover flows successfully, flows: {:?}", to_be_created);
}
for (flow_id, err) in errors {
warn!("Failed to recreate flow {}, err={:#?}", flow_id, err);
} else {
let failed_flow_ids = errors.iter().map(|(flow_id, _)| *flow_id).join(", ");
for (flow_id, err) in errors {
warn!("Failed to recreate flow {}, err={:#?}", flow_id, err);
}
return InternalSnafu {
reason: format!(
"Failed to recreate flows during consistency check: [{failed_flow_ids}]"
),
}
.fail();
}
} else {
warn!(