Skip to content

Idempotency keys #466

Answered by AndrewIngram
AndrewIngram asked this question in Q&A
Jun 9, 2022 · 3 comments · 5 replies
Discussion options

You must be logged in to vote

Answer extracted from a comment:

Managed to get it working. There were a few gnarly bits related to exception handling, but using the magic _ninja_contribute_args and _ninja_contribute_to_operation properties was very useful for augmenting the original operation.

This is a very hastily (i.e. don't expect it to work just by copy/pasting) extracted version of the solution: https://gist.github.com/AndrewIngram/9d3dd742d1801e898add1e2aa5130639

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@AndrewIngram
Comment options

@vitalik
Comment options

@AndrewIngram
Comment options

@AndrewIngram
Comment options

@AndrewIngram
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AndrewIngram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants