govuk_message_queue_consumer 3.4.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92a09ae7a0da01c7bdaf29f37b8053bcb4f9c4334d87d0b18ad310eecc9f6815
4
- data.tar.gz: fc3dff089f8f8b7a11aee7c925156e81c28649bba315614bc61a8e0a8681db5a
3
+ metadata.gz: 8a3ef3f89aa60ea51f6335665bf01b9ce01f5d313be4770fa72452f234fd626c
4
+ data.tar.gz: 2c3ba684115314f3329705c52e670d1055c9109e32e7d56ac2e59d9893ba9510
5
5
  SHA512:
6
- metadata.gz: cf3f04b956c6019a8b1ea9e483dd52d0f01c85262776395d4a53b5fe68fea8241cdef12afc958174728ca5cdbfb019929e9933524b2df6cab154fa2ada3b3e62
7
- data.tar.gz: 50dd3d6beab63bbec13a077484f1a6c4d8d9aac5ba7c6ea374de9d9d0756e002c5d8803290959ff6018b16377bdd89e86ee9f41bb7c30f260dd6e5fb865e4577
6
+ metadata.gz: 42c2a962a238605044afaa5fb3f84c494324033bf2426317ad66d730595bfe26060811cc6c9c209cfe0017f60769446d41de1a234dd4042c9932a65531f60aab
7
+ data.tar.gz: 4bb19be3b6309721256772f0570f1a63095067d6f5ce3c1ba612c12706d96ad7a4626eba6794563d17016935648ebfd8232be8a9cbbc009f7b5ef92dcda3f02a
@@ -1,3 +1,7 @@
1
+ # 3.5.0
2
+
3
+ - Stop reporting `SignalExceptions` to `GovukError`.
4
+
1
5
  # 3.4.0
2
6
 
3
7
  - Add ability to override default consumer subscribe options with `subscribe_opts` parameter
data/README.md CHANGED
@@ -15,7 +15,8 @@ For detailed documentation, check out the [gem documentation on rubydoc.info](ht
15
15
  This gem is used by:
16
16
 
17
17
  - [Cache clearing service](https://github.com/alphagov/cache-clearing-service).
18
- - [Content performance manager](https://github.com/alphagov/content-performance-manager).
18
+ - [Content Data API](https://github.com/alphagov/content-data-api).
19
+ - [Email Alert Service](https://github.com/alphagov/email-alert-service/).
19
20
  - [Rummager](https://github.com/alphagov/rummager).
20
21
 
21
22
  ## Nomenclature
@@ -49,6 +49,9 @@ module GovukMessageQueueConsumer
49
49
  end
50
50
  @statsd_client.increment("#{@queue_name}.batch_complete")
51
51
  end
52
+ rescue SignalException => e
53
+ @logger.error "SignalException in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace.join("\n")}"
54
+ exit(1) # Ensure rabbitmq requeues outstanding messages
52
55
  rescue Exception => e
53
56
  @statsd_client.increment("#{@queue_name}.uncaught_exception")
54
57
  GovukError.notify(e) if defined?(GovukError)
@@ -36,6 +36,9 @@ module GovukMessageQueueConsumer
36
36
  @statsd_client.increment("#{@queue_name}.started")
37
37
  message_consumer.process(message)
38
38
  @statsd_client.increment("#{@queue_name}.#{message.status}")
39
+ rescue SignalException => e
40
+ @logger.error "SignalException in processor: \n\n #{e.class}: #{e.message}\n\n#{e.backtrace.join("\n")}"
41
+ exit(1) # Ensure rabbitmq requeues outstanding messages
39
42
  rescue Exception => e
40
43
  @statsd_client.increment("#{@queue_name}.uncaught_exception")
41
44
  GovukError.notify(e) if defined?(GovukError)
@@ -1,3 +1,3 @@
1
1
  module GovukMessageQueueConsumer
2
- VERSION = '3.4.0'
2
+ VERSION = '3.5.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_message_queue_consumer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
11
+ date: 2019-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny