timeout_job 0.1.1 → 0.1.2

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: 23bd018407b869fd1da308194ffd1b2a105b2987a9259fff9a820b36facfaca8
4
- data.tar.gz: a44ec1ce2de6ac0f95cc75671b432639dd1dc206d7112aea8936f55374372e0b
3
+ metadata.gz: 18cae5dc666418e1c7a4f8d6308ba012861ab80cee28bb8e8af1559064250d0a
4
+ data.tar.gz: 3e7362bf5548ec2b7696321f4b700ad3aa0f81c453eee28628dd3b14aeb272c2
5
5
  SHA512:
6
- metadata.gz: 84887d364c09091c850be1c0228077de423cb9294439309ab1a11180229160f61da64cee7f698d43be02513660e565e4c119eff2df9d9467790af548929c73b0
7
- data.tar.gz: 6e90e13ba86c6b2eee1250a6910ed22c32393e825cd148101fc4fdd1578dda08a97f913ecf86e87543a086a59b6887761733946b34216aaa740ee5c33f44b70e
6
+ metadata.gz: 3fdc2bf0248c0f46a9741dd08385eef2685732c3e96eda300da6211bc8665572a41ba4bea8c9943b233f47d4fbe2c9e8ea8efbc12e1d6fc50bcafe0c80ad70ed
7
+ data.tar.gz: 5048b93594f28b7f3652b8c30f9dc087dbd14ed325ef0307b4ff9978fd318224a5862b511350b3057515307968f5a6b97fc5bc320d3476a3fa943d472e6b555a
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- timeout_job (0.1.1)
4
+ timeout_job (0.1.2)
5
5
  sidekiq (> 6.0, < 7.0)
6
6
 
7
7
  GEM
@@ -10,7 +10,8 @@ module TimeoutJob
10
10
  result = yield_with_timeout(worker.timeout_in, &block)
11
11
 
12
12
  if timeout?
13
- logger.info "job execution is timed out. timeout_in=#{worker.timeout_in} args=#{truncate(msg['args'].inspect)}"
13
+ logger.info "TimeoutJob: The job of #{worker.class} timed out timeout_in=#{worker.timeout_in} args=#{truncate(msg['args'].inspect)}"
14
+ logger.info 'TimeoutJob: ' + @error.backtrace.join("\n") if @error
14
15
  perform_callback(worker, :after_timeout, msg['args'])
15
16
  nil
16
17
  else
@@ -28,6 +29,7 @@ module TimeoutJob
28
29
  end
29
30
  rescue ::Timeout::Error => e
30
31
  @timeout = true
32
+ @error = e
31
33
  nil
32
34
  end
33
35
 
@@ -1,3 +1,3 @@
1
1
  module TimeoutJob
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timeout_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ts-3156
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2020-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq