tanga_que_extensions 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9aae367072232fd5da235b0aa176823cbb84fed0
4
- data.tar.gz: 33b0388eca8e5cbd44cbb4eddabe35667507f7ca
3
+ metadata.gz: 8c0d30edef8adc8a9d3fc5e14d20fec662a7aa55
4
+ data.tar.gz: 31b9a43eb752f4824a1feda364bbcf42f1097bf2
5
5
  SHA512:
6
- metadata.gz: 154e6b003b0b5497f4fa656eb12a548adf51fd3ac4c20e4cd72045ac6a4394f653b25bd406dd29f9f42978e538a91614063fe88ec5887be2405f85e015568063
7
- data.tar.gz: 8b577e258ffa815885c61bc1dcc192ad1a828f9e7026ff6defd6727ee40306f7d5ab2e57aa8605e429dcba5df939373b626ecfcddfd5ff8d3bbe0bb443e7e9c9
6
+ metadata.gz: 1dcb704a5566e1078883d9b05b37e6c63e9b5a08a446ee0b3f0109b01d4fab4378825dd74c3f8ff915e6ca5dd52722d3a4accd59eab33f0afd14d1958307a0bf
7
+ data.tar.gz: 6f2386902018a1a1d2a5097e3f4a997aca07417f03abdc5b50bee664da9f236b18d4d6c7059ced59bf0b45243dea5b7fbb5adadbc1eab54b595fd00c1fb1a478
data/lib/child_job.rb CHANGED
@@ -1,11 +1,13 @@
1
- module Que::ChildJob
2
- def enqueue(*args)
3
- Que.transaction do
4
- job_data = super
1
+ module Que
2
+ class ChildJob < Que::Job
3
+ def self.enqueue(*args)
4
+ Que.transaction do
5
+ job_data = super
5
6
 
6
- parent_job_id = args.first[:parent_job_id] rescue nil
7
- if parent_job_id.present?
8
- QueJob.where(job_id: job_data.attrs['job_id']).update_all(parent_job_id: parent_job_id)
7
+ parent_job_id = args.first[:parent_job_id] rescue nil
8
+ if parent_job_id.present?
9
+ QueJob.where(job_id: job_data.attrs['job_id']).update_all(parent_job_id: parent_job_id)
10
+ end
9
11
  end
10
12
  end
11
13
  end
@@ -12,8 +12,7 @@ Que.connection = ActiveRecord
12
12
 
13
13
  ActiveRecord::Base.logger = Logger.new($stdout)
14
14
 
15
- class Child < Que::Job
16
- prepend Que::ChildJob
15
+ class Child < Que::ChildJob
17
16
  prepend Que::RecordJobStatus
18
17
  prepend Que::RecordJobStatusToParentJob
19
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tanga_que_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Van Dyk