Just to cross check my understanding of tryMax functionality. Are we going to mark the request as failed only if all the attempts are failed under tryMax loop? Or Are we going to mark the request as failed for every attempt?
I am trying to implement tryMax function in my code and have been noticing that failure attempts are also being logged under “KO” section even if the request would have passed in different attempt. I mean if the request is passed in 4th attempt but all the previous 3 attempts are being logged under “KO” section which is misleading the overall error rate and creating unnecessary havoc.
Please correct me if i am missing anything here. Thanks a lot in advance for looking into this.
Just to cross check my understanding of tryMax functionality. Are we going
to mark the request as failed only if all the attempts are failed under
tryMax loop? Or Are we going to mark the request as failed for every
attempt?
The former
I am trying to implement tryMax function in my code and have been noticing
that failure attempts are also being logged under "KO" section even if the
request would have passed in different attempt. I mean if the request is
passed in 4th attempt but all the previous 3 attempts are being logged
under "KO" section which is misleading the overall error rate and creating
unnecessary havoc.
Hi Stephane,
I have included “tryMax” function in my code to handle the reattempt logic of Business usecase. I was expecting that it will be logging the failure after all attempts but it is logging failure under “KO” section for each attempt which is misleading the error count.
Hi Stephane,
Let me explain application flow… whenever the app didn’t receive success status for the request, it attempts for 5 times and then only it will return the request as “Failed”. So, I have included tryMax function to handle this usecase. We are expecting to log the request as failed only after all attempts are completed but it is logging for every attempt. We need to the log the request status after all attempts incase of failures.Hope it is clear.
Can you please let me know if we have any other function/approach to handle this usecase?