action_subscriber 4.2.3.pre → 4.2.3.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/action_subscriber/base.rb +1 -1
- data/lib/action_subscriber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18d1da57332fc7ae0f0c061d57e1d57648618fc6
|
4
|
+
data.tar.gz: 35665b898dea262b08f10851cbd369c934bdc2ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915323ad15ffaeeddb669866a9b39a74154520b18efe3ed43e66a85e4ac7c333a9435bfd646bfea0b5eabc80a47c129dbfb61ee73574cdf68340b5b29ef9196e
|
7
|
+
data.tar.gz: b23741a03018c01ad19c449321944a43f56a5ba6c66084f546d20cb8ab2848a5004e8cf3e729695d142df67a97f6d77ca1948243260c00033e37caf015fe3420
|
data/README.md
CHANGED
@@ -163,10 +163,10 @@ Rabbit is told to expect message acknowledgements, but sending the acknowledgeme
|
|
163
163
|
We send the acknowledgement right after calling your subscriber.
|
164
164
|
If an error is raised your message will be retried on a sent back to rabbitmq and retried on an exponential backoff schedule.
|
165
165
|
|
166
|
-
###
|
166
|
+
### redeliver
|
167
167
|
|
168
|
-
A message can be sent to "
|
169
|
-
takes a "backoff schedule" which is a hash of backoff milliseconds for each
|
168
|
+
A message can be sent to "redeliver" with `::ActionSubscriber::MessageRetry.redeliver_message_with_backoff` or the DSL method `redeliver` and optionally
|
169
|
+
takes a "backoff schedule" which is a hash of backoff milliseconds for each redeliver, the default:
|
170
170
|
|
171
171
|
```ruby
|
172
172
|
SCHEDULE = {
|
@@ -184,7 +184,7 @@ takes a "backoff schedule" which is a hash of backoff milliseconds for each retr
|
|
184
184
|
|
185
185
|
when the schedule "returns" `nil` the message will not be retried
|
186
186
|
|
187
|
-
> Warning: If you use `
|
187
|
+
> Warning: If you use `redeliver` you need to handle reject/acknowledge according how errors are handled; if an error is caught and the
|
188
188
|
> ack/reject is already done then you may duplicate the message in `at_least_once!` mode
|
189
189
|
|
190
190
|
Testing
|
@@ -60,7 +60,7 @@ module ActionSubscriber
|
|
60
60
|
env.reject
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
63
|
+
def redeliver(backoff_schedule = ::ActionSubscriber::MessageRetry::SCHEDULE)
|
64
64
|
::ActionSubscriber::MessageRetry::redeliver_message_with_backoff(env, backoff_schedule)
|
65
65
|
end
|
66
66
|
end
|