Skip to content

Conversation

@uri-99
Copy link
Contributor

@uri-99 uri-99 commented Nov 28, 2024

Flush batcher queue only when necessary

Note

This pr includes the content of #1507.

Description

Modifies the batcher queue's behavior when encountering an error during task creation. Instead of flushing the entire queue by default, the logic now checks the error type. We only flush when the transaction reverted due to:

  • SubmissionInsufficientBalance
  • Generic

Type of change

Please delete options that are not relevant.

  • Bug fix

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@uri-99 uri-99 linked an issue Nov 28, 2024 that may be closed by this pull request
@uri-99 uri-99 changed the base branch from testnet to staging November 28, 2024 00:30
Copy link
Member

@MarcosNicolau MarcosNicolau left a comment

Choose a reason for hiding this comment

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

Works alright, but we should merge it with #1507 as it is a dependency.

MarcosNicolau and others added 6 commits November 28, 2024 11:15
…from-queue-until-they-are-accepted-on-chain' into 1510-fix-flush-batcher-queue-only-when-needed
…from-queue-until-they-are-accepted-on-chain' into 1510-fix-flush-batcher-queue-only-when-needed
Copy link
Member

@MarcosNicolau MarcosNicolau left a comment

Choose a reason for hiding this comment

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

Tested on macos, works as expected.

Copy link
Contributor

@avilagaston9 avilagaston9 left a comment

Choose a reason for hiding this comment

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

Works in my machine!

@JuArce JuArce enabled auto-merge November 29, 2024 14:04
@JuArce JuArce added this pull request to the merge queue Nov 29, 2024
Merged via the queue into staging with commit 94fcec9 Nov 29, 2024
3 checks passed
@JuArce JuArce deleted the 1510-fix-flush-batcher-queue-only-when-needed branch November 29, 2024 14:23
avilagaston9 added a commit that referenced this pull request Nov 29, 2024
Co-authored-by: Julian Ventura <[email protected]>
Co-authored-by: avilagaston9 <[email protected]>
Co-authored-by: Marcos Nicolau <[email protected]>
Co-authored-by: Marcos Nicolau <[email protected]>
Co-authored-by: Avila Gastón <[email protected]>
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.

fix: flush batcher queue only when needed

6 participants