timeout_job 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/timeout_job.rb +3 -1
- data/lib/timeout_job/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: 18cae5dc666418e1c7a4f8d6308ba012861ab80cee28bb8e8af1559064250d0a
|
4
|
+
data.tar.gz: 3e7362bf5548ec2b7696321f4b700ad3aa0f81c453eee28628dd3b14aeb272c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fdc2bf0248c0f46a9741dd08385eef2685732c3e96eda300da6211bc8665572a41ba4bea8c9943b233f47d4fbe2c9e8ea8efbc12e1d6fc50bcafe0c80ad70ed
|
7
|
+
data.tar.gz: 5048b93594f28b7f3652b8c30f9dc087dbd14ed325ef0307b4ff9978fd318224a5862b511350b3057515307968f5a6b97fc5bc320d3476a3fa943d472e6b555a
|
data/Gemfile.lock
CHANGED
data/lib/timeout_job.rb
CHANGED
@@ -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
|
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
|
|
data/lib/timeout_job/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|