govuk_message_queue_consumer 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a3ef3f89aa60ea51f6335665bf01b9ce01f5d313be4770fa72452f234fd626c
|
4
|
+
data.tar.gz: 2c3ba684115314f3329705c52e670d1055c9109e32e7d56ac2e59d9893ba9510
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42c2a962a238605044afaa5fb3f84c494324033bf2426317ad66d730595bfe26060811cc6c9c209cfe0017f60769446d41de1a234dd4042c9932a65531f60aab
|
7
|
+
data.tar.gz: 4bb19be3b6309721256772f0570f1a63095067d6f5ce3c1ba612c12706d96ad7a4626eba6794563d17016935648ebfd8232be8a9cbbc009f7b5ef92dcda3f02a
|
data/CHANGELOG.md
CHANGED
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
|
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)
|
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
|
+
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-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|