Custom retry with backoff time - Every retry (tryMax) is counted in KO error count - How to ignore it?


Use-case for my system is to implement retry logic with backoff time (exponential) when there is HTTP error code 429.
We have implemented the custom logic to achieve this using tryMax and pause.

But the issue we are facing is for each failure as part of retry, error count (KO) is added.

eg: calling SvcA with retry attempts of 5.

If first 3 retries filed, KO count is 3. This makes gatling report extremely hard to understand and also for the assertion rules.

Is there a way to suppress or mark the API call as NOT failed inside the tryMax?

Kamal T

You’ll have to implement you own logic with asLongAs.