update the retry policy.