RailsEventStore / ecommerce

Application with CQRS and Event Sourcing built on Rails and Rails Event Store
MIT License
425 stars 72 forks source link

Limit automatic retries to one #406

Closed marlena-b closed 2 months ago

marlena-b commented 2 months ago

Issue: https://github.com/RailsEventStore/ecommerce/issues/43

Before there were infinite retries which could sometimes lead to crashing the app. Now, the number of retries after RubyEventStore::WrongExpectedEventVersion error is one.

netlify[bot] commented 2 months ago

Deploy Preview for ecommerce-events failed.

Name Link
Latest commit a3abb5a128f75e3c75e4a38026bdf81ada31b42f
Latest deploy log https://app.netlify.com/sites/ecommerce-events/deploys/66f686d0bd006a00085e7d35
andrzejkrzywda commented 2 months ago

Interesting approach with Infra::Retry, thanks!