Skip to content

Commit

Permalink
Add a function that returns that it should ALWAYS retry when delivery…
Browse files Browse the repository at this point in the history
… failed. This will cause Caduceus to attempt delivery up to the maximum number of specified deliveries, regardless of the source of error.
  • Loading branch information
schmidtw committed Jul 13, 2018
1 parent 4d376ef commit 97012d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/caduceus/outboundSender.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ func (obs *CaduceusOutboundSender) worker(id int) {
Retries: obs.deliveryRetries,
Interval: obs.deliveryInterval,
Counter: simpleCounter,
// Always retry on failures up to the max count.
ShouldRetry: func(error) bool { return true },
}

// Only optimize the successful answers
Expand Down

0 comments on commit 97012d7

Please sign in to comment.