Skip to content

Datastore outage and consumer retry and restart query #210

Answered by BEagle1984
cookie-bytes asked this question in Q&A
Discussion options

You must be logged in to vote

It will simply retry indefinitely if you configure a retry policy without specifying the retriesCount: see IErrorPolicyBuilder.

Note that you can build sophisticated policies like this:

.OnError(policy => policy
    .Retry(1) // 1st retry is immediate
    .ThenRetry(3, TimeSpan.FromSeconds(10)) // 2nd-4th attempts 10 seconds apart
    .ThenRetry(TimeSpan.FromMinutes(2))) // then retry indefinitely every 2 minutes

Remember to increase the MaxPollIntervalMs, if you want to increase the delay past the default 5 minutes.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@cookie-bytes
Comment options

@BEagle1984
Comment options

Answer selected by cookie-bytes
@cookie-bytes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants