I prepare myself for the professional dev exam. There is one question regarding REFramework and the numbers of retries. Let me cite that for you.
“A process uses the Robotic Enterprise (RE) Framework with queues. The value of the Max # of retries on the queue is 3 and the MaxRetryNumber value in the config file is 2. In the event of repeating Application Exceptions, what is the maximum number of times a Queue Item will be retried?”
The important information is about maximum number of retries. I know it should be 3 BUT there’s explicit said config file is 2. So, I don’t know what really happens if I turn the number 2 because it has to be 0 in combination with a queue.
I made an experiment and built up an REFramwork with those conditions. It turns out the number of retries is 4. And 4 is not an option.
Do I have an error in my understanding or is the question just wrong?
Retries are tries for which a new item is created in the queue.
So the number you use in config or Queue does not include the initial run. I know this is confusing so just remember to add one to know the max number of tries (initial try, rest retries)
Hence the conclussion to this is that the MaxRetryNumber in Config.xlsx is useless if we are using the retry number in queues? In your scenario, there are 4 runs (1 run and 3 retries) => 3 retries. Is this right? (faced a similar question in a practice exam and did same tests as you did @Enrico )
For your question: “A process uses the Robotic Enterprise (RE) Framework with queues. The value of the Max # of retries on the queue is 3 and the MaxRetryNumber value in the config file is 2. In the event of repeating Application Exceptions, what is the maximum number of times a Queue Item will be retried?”
The queue retry number has priority over Config MaxRetryNumber.
So according the question, the failed queue item will be retried 3 times.
As a good practice, if queue retry is used, then Config MaxRetryNumber must be zero. If both are mentioned, then queue retry number will be considered.
The queue settings are given priority
If your queue setting is not there then it will go and refer values from config file
Now the first attempt is not retry its original attempt and other three are retries
So your answer should be 3