appfuel-service 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/appfuel/service/version.rb +1 -1
- data/lib/appfuel/service/worker.rb +14 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37b757e639168a2e9db73197745cfb053e5bd3ed
|
4
|
+
data.tar.gz: eed3bc558e0ae82fbbb3c101f2f0db2603f9cd5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e9b11e9a087b227bfb88a47d9e8f383d3608f52aeff46d8f8e76a5046774d43f5f98c236c5e9bfbcef5829b85777f892daaeacb9a501af7db09d112ca4724a2
|
7
|
+
data.tar.gz: 4adb844e3a6d5a890033b4d1f48890de67fa97628ad01ba5749e50f03d9b8ee2901e06a2c1c820e1a96158ac9cccf7d5adc494ca46514f3726ca0ed5bd0ece59
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. (Pending ap
|
|
5
5
|
|
6
6
|
|
7
7
|
# Releases
|
8
|
+
## [[0.2.9]](https://github.com/rsb/appfuel/releases/tag/0.2.9) 2017-08-08
|
9
|
+
## Fixed
|
10
|
+
- service worker will send a rabbitmq reject! when it can not create a request
|
11
|
+
|
8
12
|
## [[0.2.8]](https://github.com/rsb/appfuel/releases/tag/0.2.8) 2017-07-21
|
9
13
|
## Fixed
|
10
14
|
- config for sneakers bad pid path
|
@@ -37,7 +37,20 @@ module Appfuel
|
|
37
37
|
container = app_container
|
38
38
|
logger = container[:logger]
|
39
39
|
logger.info "[queue worker] accepting msg"
|
40
|
-
|
40
|
+
begin
|
41
|
+
request = create_request(msg, delivery_info, properties)
|
42
|
+
rescue => e
|
43
|
+
error_msg = "[queue worker] failed to create request " + e.message
|
44
|
+
logger.error error_msg
|
45
|
+
if properties.correlation_id && properties.reply_to
|
46
|
+
request = create_request('{}', delivery_info, properties)
|
47
|
+
response = Appfuel::ResponseHandler.new.error(worker: [error_msg])
|
48
|
+
publish_rpc(request, response)
|
49
|
+
end
|
50
|
+
|
51
|
+
return reject!
|
52
|
+
end
|
53
|
+
|
41
54
|
response = dispatch(request, container)
|
42
55
|
if response.failure?
|
43
56
|
logger = container[:logger]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appfuel-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Scott-Buccleuch
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appfuel
|