dtm
dtm copied to clipboard
Support Saga options RetryLimit
If retry count is greater than RetryLimit, then Saga transaction stop retrying, and rollback.
i would like to do this.
3q
Good Job! PR has been merged.
In production, if some service has some problem, it may take minutes to recover. So if dtm retry several times without sleeping, then dtm may abort the transaction before the service recovered.
A better strategy is to sleep before retrying, just like the next_cron_interval do. Can you replace the field next_cron_interval by retry_count, and add the testing of retry_count against RetryLimit there?
OK, I understand the scene you said and will finish it in my spare time.