Skip to content

Commit

Permalink
Print errors in waiting for computations
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Oct 3, 2024
1 parent 5f9f7ac commit 026ac85
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion fhevm-engine/coprocessor/src/tests/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,15 @@ pub async fn wait_until_all_ciphertexts_computed(
println!("All computations completed");
break;
} else {
println!("{current_count} computations remaining, waiting...");
let errors = sqlx::query!("SELECT output_handle, error_message FROM computations WHERE NOT is_error LIMIT 5")
.fetch_all(&pool)
.await?;
if !errors.is_empty() {
println!("errors found inside computations, breaking: {:?}", errors);
break;
} else {
println!("{current_count} computations remaining, waiting...");
}
}
}

Expand Down

0 comments on commit 026ac85

Please sign in to comment.