Skip to content

Commit a746250

Browse files
committed
fix(coprocessor): restrict update of computation completion to uncompleted computations
1 parent e810dac commit a746250

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

coprocessor/fhevm-engine/.sqlx/query-eda7c952325475562fbe1d1a5793ac82366742c1618f83dfd6b4da5db9492544.json renamed to coprocessor/fhevm-engine/.sqlx/query-5e57f8be36c4ccd8fb28fb36a71d81a4cb7e13700a89267b53a3e7edfeb8b4cc.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coprocessor/fhevm-engine/tfhe-worker/src/tfhe_worker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,7 @@ async fn upload_transaction_graph_results<'a>(
738738
UPDATE computations
739739
SET is_completed = true, completed_at = CURRENT_TIMESTAMP
740740
WHERE tenant_id = $1
741+
AND is_completed = false
741742
AND (output_handle, transaction_id) IN (
742743
SELECT * FROM unnest($2::BYTEA[], $3::BYTEA[])
743744
)

0 commit comments

Comments
 (0)