lambdakiq 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/Gemfile.lock +1 -1
- data/lib/lambdakiq/metrics.rb +8 -3
- data/lib/lambdakiq/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c135b6e0287693cd9578f31b12517e005d534d26fe6e97018a7de1860b894a
|
4
|
+
data.tar.gz: b0c89e6ed8bc0686700ddfa20591cf1d5b61253ff3f6539393bab9e293f3e9ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72dd47f3e94b10f3311cffe28a42d6fbc9df564f3767bae47f2b85ad13bab5671fae199df5e3ac054d68e1a887dc076a9a2024a35ac9ac91ad76a01184bdb028
|
7
|
+
data.tar.gz: fa0f5c5087f28e19ee204963237798a610257ecaf410e5efb59eda65513390b29e73a2939d3f826bbdb10aaf2a8aefba2efe00109b63d6010c30ef16148051b2
|
data/CHANGELOG.md
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
See this http://keepachangelog.com link for information on how we want this documented formatted.
|
4
4
|
|
5
|
-
## v1.0.2, v1.0.3
|
5
|
+
## v1.0.2, v1.0.3, v1.0.4
|
6
6
|
|
7
7
|
#### Fixed
|
8
8
|
|
9
|
-
-
|
9
|
+
- Rails v5.2 compatibility. Metrics logging is are safe for non-Lambdakiq jobs
|
10
10
|
|
11
11
|
## v1.0.0
|
12
12
|
|
data/Gemfile.lock
CHANGED
data/lib/lambdakiq/metrics.rb
CHANGED
@@ -30,8 +30,14 @@ module Lambdakiq
|
|
30
30
|
job.class.name
|
31
31
|
end
|
32
32
|
|
33
|
+
def adapter_name
|
34
|
+
event.payload[:adapter].class.name
|
35
|
+
end
|
36
|
+
|
33
37
|
def lambdakiq?
|
34
|
-
|
38
|
+
adapter_name.include?('Lambdakiq') &&
|
39
|
+
job.respond_to?(:lambdakiq?) &&
|
40
|
+
job.lambdakiq?
|
35
41
|
end
|
36
42
|
|
37
43
|
def logger
|
@@ -65,7 +71,7 @@ module Lambdakiq
|
|
65
71
|
set_property 'QueueName', job.queue_name
|
66
72
|
set_property 'MessageId', job.provider_job_id if job.provider_job_id
|
67
73
|
set_property 'ExceptionName', exception_name if exception_name
|
68
|
-
set_property 'EnqueuedAt', job.enqueued_at if job.enqueued_at
|
74
|
+
set_property 'EnqueuedAt', job.enqueued_at if job.respond_to?(:enqueued_at) && job.enqueued_at
|
69
75
|
set_property 'Executions', job.executions if job.executions
|
70
76
|
job.arguments.each_with_index do |argument, index|
|
71
77
|
set_property "JobArg#{index+1}", argument
|
@@ -113,4 +119,3 @@ module Lambdakiq
|
|
113
119
|
|
114
120
|
end
|
115
121
|
end
|
116
|
-
|
data/lib/lambdakiq/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lambdakiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|