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

Mark terminally stuck transaction pending task runs as failure #14282

Merged
merged 4 commits into from
Sep 4, 2024

Conversation

amit-momin
Copy link
Contributor

@amit-momin amit-momin commented Aug 29, 2024

BCI-4122

Updated Confirmer logic to signal callback with failure for terminally stuck transactions. Previously, the default flow was followed and the callback was called using the purge attempt's receipt.

@amit-momin amit-momin marked this pull request as ready for review August 29, 2024 20:54
@amit-momin amit-momin requested review from a team as code owners August 29, 2024 20:54
@amit-momin amit-momin requested review from ilija42 and removed request for a team August 29, 2024 20:54
common/txmgr/confirmer.go Show resolved Hide resolved
common/txmgr/confirmer.go Outdated Show resolved Hide resolved
common/txmgr/confirmer.go Show resolved Hide resolved
@@ -748,7 +748,7 @@ func (eb *Broadcaster[CHAIN_ID, HEAD, ADDR, TX_HASH, BLOCK_HASH, SEQ, FEE]) save
// Now we have an errored pipeline even though the tx succeeded. This case
// is relatively benign and probably nobody will ever run into it in
// practice, but something to be aware of.
if etx.PipelineTaskRunID.Valid && eb.resumeCallback != nil && etx.SignalCallback {
if etx.PipelineTaskRunID.Valid && eb.resumeCallback != nil && etx.SignalCallback && !etx.CallbackCompleted {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if !etx.CallbackCompleted is possible, but I guess it's fine.

@dimriou dimriou added this pull request to the merge queue Sep 4, 2024
Merged via the queue into develop with commit 1a2b7b6 Sep 4, 2024
135 checks passed
@dimriou dimriou deleted the fix/error-pending-task-zk-overflow branch September 4, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants