Disable Retries using Sage Saga Patterns

Hello guys!

Has anyone here using Saga Patterns and using Sage for it? I would like to know how disable retries when testing. For example I’m testing one functionality and on purpose making it fails, and it is triggering retry. The problem is that the tests have been taking 8 seconds because of the retries that i configured. That is a lot!

I didn’t find anything on repo, neither some issue related to it.

If you have already passed through something similar, let me know!

Thank you guys!

So you probably have one step returning the retry tuple? From the docs you are probably doing this: Sage — Sage v0.6.3

When you define the sage execution (or transaction), you can pass parameters to it. You can pass the number of retries or a parameter like a “disable_retry” and in test, your step should not return the retry tuple if this param is true

2 Likes

Thank you @phcurado