tanga_que_extensions 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/record_job_status.rb +4 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e89bcd0e04a2952ede896535d485208b8dcb496
4
- data.tar.gz: 98b4c34cb597cb7113512ea08c3cc5ef9cb9a6fa
3
+ metadata.gz: d5fe67708ee2607772fd3736b8c2b53121c2a752
4
+ data.tar.gz: 10b96064be623baee0d7bf93c0c5bebab4b6de6d
5
5
  SHA512:
6
- metadata.gz: b4443cbcd6839d1da07868297def5945121232d30eb063547bbb3c4377b07f3972108df926eebb99095a9d5d06c597bcb336ab4344cf668ea0287d2e488e7db9
7
- data.tar.gz: 4c3973a551af8acd8abf0035e420a2df6e941fb8c3743ad4d425b0ff9ed8cff6f4e858cbd468cbbcb0dd03ceb9578f930cfb4bf8372d928b7f2e63e314a41a0f
6
+ metadata.gz: a262535ad405014cb20199076791740a2e4228254c3bd480d3557af743f8e1b856eb1cc68de7e4c14a8b4be0f00fe3f8d0a2a0ea0e1a0aaf329fb62637d5ba71
7
+ data.tar.gz: 7723d548ed2483a395a5efee1ca9c32c882c617b145e0cd73678ea10e5fc06478a28ca8796fed893459b38b028f6f95ad48b93347f0f36a9de40ee93eff1989a
@@ -4,9 +4,12 @@ module Que::RecordJobStatus
4
4
  end
5
5
 
6
6
  def parent_job_id
7
- QueJob.find(job_id).parent_job_id
7
+ @attrs['args'].first['parent_job_id'] || nil
8
+ rescue
9
+ nil
8
10
  end
9
11
 
12
+
10
13
  def run(args={})
11
14
  @job_id = self.attrs.symbolize_keys[:job_id]
12
15
  record_job_started
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanga_que_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Van Dyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-17 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: que
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.5.1
125
+ rubygems_version: 2.4.5.1
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: job scheduling stuff for tanga