Closed ro-tex closed 2 years ago
Some API calls fail with ``` { "message": "[failed to update; (WriteConflict) WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction.]" } ``` One example is the Stripe webhook but that's not the only affected endpoint. Maybe check the locking strategy used in TUS and use it when updating users?
PULL REQUEST
Overview
There is a general problem with multi-step transactions when several of them overlap.
The problem goes like this:
This PR adds the retry mechanic, so we can recover from such errors instead of directly returning them to the user.
Example for Visual Changes
Checklist
Issues Closed
Closes SKY-189