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

Better Error Handling: One mint error does not burp whole batch #13

Open
wants to merge 4 commits into
base: dp-no-jackson
Choose a base branch
from

Conversation

dav009
Copy link
Contributor

@dav009 dav009 commented Mar 28, 2022

# Why do we need this PR?

Better Error handling:

  • Currently a single failure in one SQS message of the batch endsup making the entire function call fail for the whole batch.
  • Changes introduce in this PR handles errors such that a failing minting won't stop subsequent minting
  • So we can make best use of our Lambda $$

Avoid ~recreating ErgoClient for every SQS message in the batch

  • Currently we create an Ergoclient per mint.
  • Tried doing the same for the prover but this is harder. So I skipped this in this PR

@dav009 dav009 requested a review from jaysee260 March 28, 2022 11:40
(mintRequest, r)
}
val total = results.size
val successful = results.map(_._2.isSuccess).size
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@programmer1718 Thinking we might use this list of unsucess mintings in the future.
i.e: figure out how many times a message have been re-tried and do a refund if need be?

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.

2 participants