chained_job 0.6.0 → 0.6.1

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: 4699f818627cf6babf70086a5c5d4ac5016b17bedfb48670fd262f28b2da9350
4
- data.tar.gz: 3d2f5a59e1fedaa8b11894f819739d254aa75620da658dafbb4435d1796412f1
3
+ metadata.gz: 818800b980eebd353e45811df72d640740f5fc2e5cd994f5d3e1297151e4c0b8
4
+ data.tar.gz: 11262d0b15f247b32db77e76590186aabe332e39f9dabef876e2db015bb3f714
5
5
  SHA512:
6
- metadata.gz: c4d6af80816570f45cc5b3e02aadb8d53f63fa10c009278401318a0a608d93d9e789038c594dedd4acd7cc54d6fd9459b13169f70d29d1687b1c82af2546e05e
7
- data.tar.gz: c4f945a8a699eeda1fa4524ba526442efa91dc83c7a5aab1485bcdda5f79c65e94d085bb706791b65262012770dd8ea85f97b6979631576ee30c8dabea8c2257
6
+ metadata.gz: 1d3598a379c3e8a19cd16e1004cca085a6736f258173c918d0d39a8bd4b7a0cfd283797fc3412d017dbde0efcb2080595344f01ba358ff421cd5e2a1b6e754e3
7
+ data.tar.gz: d144c5e5f36895ca6d80eb2d8df85a52149036d2b3cffd6829e9ffb37d89c5615f7b074996d6c0237f32eedcdf031baf24fc7788aeba073cb3bf6bc81c6f1a9f
@@ -17,12 +17,12 @@ module ChainedJob
17
17
  if worker_id
18
18
  ChainedJob::Process.run(args, self, job_arguments_key, worker_id, tag)
19
19
  else
20
- ChainedJob::StartChains.run(args, self.class, job_arguments_key, arguments_array, parallelism)
20
+ ChainedJob::StartChains.run(args, self.class, job_arguments_key, arguments_array(args), parallelism)
21
21
  end
22
22
  end
23
23
 
24
- def arguments_array
25
- options = { job_class: self.class }
24
+ def arguments_array(args)
25
+ options = { job_class: self.class, args: args }
26
26
  ChainedJob.config.around_array_of_job_arguments.call(options) { array_of_job_arguments }
27
27
  end
28
28
 
@@ -34,7 +34,7 @@ module ChainedJob
34
34
  end
35
35
 
36
36
  def options
37
- @options ||= { job_class: job_instance.class, worker_id: worker_id }
37
+ @options ||= { job_class: job_instance.class, worker_id: worker_id, args: args }
38
38
  end
39
39
 
40
40
  def finished_worker
@@ -49,6 +49,7 @@ module ChainedJob
49
49
  job_class: job_class,
50
50
  array_of_job_arguments: array_of_job_arguments,
51
51
  parallelism: parallelism,
52
+ args: args,
52
53
  }
53
54
  end
54
55
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChainedJob
4
- VERSION = '0.6.0'
4
+ VERSION = '0.6.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chained_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mantas Kūjalis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-05-31 00:00:00.000000000 Z
12
+ date: 2021-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler