alacrity-rails 0.13.2 → 0.13.3

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: aac46ddf96125262a6c18cdfe6c5d98c9ea0c611
4
- data.tar.gz: d4d6fcb935ce1ae1b677f7879d85bc9135cbcd88
3
+ metadata.gz: 15f11d2a967b272858264a98de0daecef9c1e027
4
+ data.tar.gz: 67a64779e471bbd377676c75741117cf03abfb47
5
5
  SHA512:
6
- metadata.gz: bf07291ea8b7035784631c09f51a2d110bb6dd0591cc92bf78e11bff90b9663651b0c65690f251988d985e24a5eca3c467eebaad31bc7c0e7fe6301993c725bd
7
- data.tar.gz: 2a84243b0b3aaef92b17028c5e714b2b91ad210703d461b358e9bb8e666dd0031adb3b3327dcc3da0fb9f574bd21d0d584987c970d5cfbb5a03d7fe9006ec9e6
6
+ metadata.gz: 3cc6d243642598e0951accff8207dfaf401cacfecabc35074ddde7147d2bfda6e74ae37d5a897450c90fe6b7ac51cbd2a9ec71130e1a8c66cef4db9d67a68543
7
+ data.tar.gz: 93828c0031d06a6de58536865c846db0c7b3a576b4f0fdf73a7b3ada3bdce30634fd894e03274f170504b4e5027a9a1625317500ebae98fdd04c8ee837ef04c1
@@ -4,18 +4,20 @@ module AlacrityRails
4
4
  ACTIVE_JOB_WRAPPER = /^ActiveJob::QueueAdapters::.+$/
5
5
 
6
6
  def call(worker_instance, msg, queue)
7
- return if ACTIVE_JOB_WRAPPER.match(msg['class'])
8
-
9
- AlacrityRails::Instrumentor.instrument(
10
- type: AlacrityRails::Transaction::Job,
11
- data: {
12
- worker_class: msg['class'],
13
- args: msg['args'],
14
- error_class: msg['error_class'],
15
- error_message: msg['error_message']
16
- }
17
- ) do
7
+ if ACTIVE_JOB_WRAPPER.match(msg['class'])
18
8
  yield
9
+ else
10
+ AlacrityRails::Instrumentor.instrument(
11
+ type: AlacrityRails::Transaction::Job,
12
+ data: {
13
+ worker_class: msg['class'],
14
+ args: msg['args'],
15
+ error_class: msg['error_class'],
16
+ error_message: msg['error_message']
17
+ }
18
+ ) do
19
+ yield
20
+ end
19
21
  end
20
22
  end
21
23
  end
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.13.2'
2
+ VERSION = '0.13.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alacrity-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.2
4
+ version: 0.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alacrity, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-24 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails