emque-consuming 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # Emque Consuming CHANGELOG
2
2
 
3
+ - [Remove double ack when consuming a message and ending up in an error state. This was causing consumers to die silently.](https://github.com/emque/emque-consuming/pull/59) 1.2.1
3
4
  - [Add in the ability to retry errors and back off with an exponential delay](https://github.com/emque/emque-consuming/pull/55) 1.2.0
4
5
  - [Add in a configuration option to disable auto shutdown on reaching the error limit](https://github.com/emque/emque-consuming/pull/58) 1.1.3
5
6
 
@@ -80,12 +80,14 @@ module Emque
80
80
  channel.ack(delivery_info.delivery_tag)
81
81
  rescue StandardError => ex
82
82
  if enable_delayed_message
83
- publish_to_delayed_message(delivery_info, metadata, payload)
83
+ begin
84
+ publish_to_delayed_message(delivery_info, metadata, payload)
85
+ rescue
86
+ channel.nack(delivery_info.delivery_tag)
87
+ end
84
88
  else
85
89
  channel.nack(delivery_info.delivery_tag)
86
90
  end
87
- ensure
88
- channel.ack(delivery_info.delivery_tag)
89
91
  end
90
92
  end
91
93
 
@@ -1,5 +1,5 @@
1
1
  module Emque
2
2
  module Consuming
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emque-consuming
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-05-11 00:00:00.000000000 Z
13
+ date: 2016-06-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: celluloid