Can you please help me with this,
I am trying to build a resource monitoring service that monitors the db connection status and returns the isAvailable based on it.(Connection Not available - false ; Connection available - true)
I have configured the trigger to handle Transient Error Handling with retry failure as Suspend and retry later option.
I have also configured the retry intervals and max retry attempts.
The throwForRetry is also present in the catch block for the service that gets invoked by the trigger.
I have also used a debugLog statement containing the number of retries to write in server log.
But when the trigger executes the service, the retry mechanism is not happening. As per the info in publish and subscribe guide,the triggers gets disabled when the max attempts are reached.
In my case, on seeing server logs, the retry count is set to ‘0’ and its not getting incremented.
Ideally the retry should have happened for every retry interval and it should have got incremented till ‘3’ and trigger must have been suspended.
But nothing happened.
Something else needs to be set or configured like some extended settings??