que 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/que/job.rb +2 -1
- data/lib/que/version.rb +1 -1
- data/spec/unit/work_spec.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84236991a2c98675b76421acf236b3b2eaa08573
|
4
|
+
data.tar.gz: a4b012520d11a41263be5364e32262a68a263cb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e9f11a615eb6493f5d94d715bc2b167164913e12c3b67e911efbd49a9c94c7d93c016f789f1fc1126bf86b3a495e9fc0c700e32ff8445c18230e3a4870b43de
|
7
|
+
data.tar.gz: 6a94dc98d719b0ce042dac9c0e259a2f7a73d707c4bddeaec5ba6574cc63343735b9d263ec399d80cf98f8302eb0a122247effd16b4d83d736c37e2845921adf
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 0.13.1 (2017-07-05)
|
2
|
+
|
3
|
+
* Fix issue that caused error stacktraces to not be persisted in most cases.
|
4
|
+
|
1
5
|
### 0.13.0 (2017-06-08)
|
2
6
|
|
3
7
|
* Fix recurring JSON issues by dropping MultiJson support. Previously MultiJson was detected and used automatically, and now it's just ignored and stdlib JSON used instead, so this shouldn't require any code changes.
|
data/lib/que/job.rb
CHANGED
@@ -41,7 +41,8 @@ module Que
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def retry_in(period)
|
44
|
-
|
44
|
+
error_message = "#{@_error.message}\n#{@_error.backtrace.join("\n")}"
|
45
|
+
Que.execute :set_error, [period, error_message] + @attrs.values_at(:queue, :priority, :run_at, :job_id)
|
45
46
|
@retried = true
|
46
47
|
end
|
47
48
|
|
data/lib/que/version.rb
CHANGED
data/spec/unit/work_spec.rb
CHANGED
@@ -432,7 +432,10 @@ describe Que::Job, '.work' do
|
|
432
432
|
DB[:que_jobs].count.should be 1
|
433
433
|
job = DB[:que_jobs].first
|
434
434
|
job[:error_count].should be 1
|
435
|
-
|
435
|
+
|
436
|
+
lines = job[:last_error].split("\n")
|
437
|
+
lines[0].should == "Blah!"
|
438
|
+
lines[1].should =~ /work_spec/
|
436
439
|
job[:run_at].should be_within(3).of Time.now + 42
|
437
440
|
|
438
441
|
error.should == result[:error]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: que
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hanks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|