Skip to content

Commit

Permalink
Fixed test retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 27, 2024
1 parent 602cb67 commit 731c284
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ protected override IQueue<SimpleWorkItem> GetQueue(int retries = 1, TimeSpan? wo
.ConnectionString(connectionString)
.Name(_queueName)
.Retries(retries)
//.RetryMultipliers(retryMultipliers ?? new[] { 1, 3, 5, 10 }) // TODO: Flow through the retry multiplier.
.RetryPolicy(retries <= 0 ? new NoRetry() : (IRetryPolicy)new ExponentialRetry(retryDelay.GetValueOrDefault(TimeSpan.FromMinutes(1)), retries))
.RetryPolicy(retries <= 0 ? new NoRetry() : new ExponentialRetry(retryDelay.GetValueOrDefault(TimeSpan.FromMinutes(1)), retries))
.WorkItemTimeout(workItemTimeout.GetValueOrDefault(TimeSpan.FromMinutes(5)))
.DequeueInterval(TimeSpan.FromMilliseconds(100))
.TimeProvider(timeProvider)
Expand Down

0 comments on commit 731c284

Please sign in to comment.