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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4ecb14bd32339cd277011e29b1c5b690a81de5e0
4
- data.tar.gz: 4a361459184b8c5afe37d76ae18bf28dc8a30c5c
3
+ metadata.gz: 37b757e639168a2e9db73197745cfb053e5bd3ed
4
+ data.tar.gz: eed3bc558e0ae82fbbb3c101f2f0db2603f9cd5f
5
5
  SHA512:
6
- metadata.gz: 664ca3fbae011fff7bdaa7ea7f2203a3d002a3f42dabeed4453961ae3d9fe1a09543bb59c9652d96f184c00eaddd5114a88a576935518309d86d2caf6c01a86e
7
- data.tar.gz: df97bf47fdbeace1548acc5d85eb24dd313cd5b87557b34f5cdb0bac840aee8bf73a32257f26c45fb27fe4f0be993407a56c2a838fe7b986346273175b755cd2
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
@@ -1,5 +1,5 @@
1
1
  module Appfuel
2
2
  module Service
3
- VERSION = "0.2.8"
3
+ VERSION = "0.2.9"
4
4
  end
5
5
  end
@@ -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
- request = create_request(msg, delivery_info, properties)
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.8
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-07-21 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appfuel