ductwork 0.10.0 → 0.11.0

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: d765346f45ed4decd591419e0933c6b49a337bd7ce8f45b2af7cb6b7878e1654
4
- data.tar.gz: 7da3787db60a7fda7d080c1285175b57df0126f43d66703a28655fcbb1820c08
3
+ metadata.gz: a8865aef62511e2f94cd1400996127785cc5d46d9f2b16b00685145308addae3
4
+ data.tar.gz: f46683206d866c499f6f7eec03b5334038c77cf4078c7f78e150de11bd40b582
5
5
  SHA512:
6
- metadata.gz: aea3f2fd8ea8275a10c121347dc1ae7c76d29f7111e604ab355f6e786ec9b516955d0e55984e1b8c0bbc1ac60cf74885829b02352cdcc789566cee6ba5d9f870
7
- data.tar.gz: 245d0ff17c65167eebc795e9514633674cedad05a2e1dc14da665230caf1c28957e90dfc88389c1befff1ff0a50f6d888adf7794cfebe7bfc48d5f72a2da921c
6
+ metadata.gz: '08b1731d7f186650a6de90dad1b3ec3f797bddd55f03aab5d1812b7cf1476ec563d3f74537b04622778d3e3cd41afae2b38152805aa6d4d796764469f72703e7'
7
+ data.tar.gz: 6cc3908017094ad58f96c6db69cafca8b585e6f45217821f27559a7a7e47f59b8017a4d0fc87af4ea83286aa1aa0502b42d0159c2e1f6e54535296cecdd8149e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Ductwork Changelog
2
2
 
3
+ ## [0.11.0]
4
+
5
+ - feat: expose `job` attribute during claim and execution in job worker
6
+
3
7
  ## [0.10.0]
4
8
 
5
9
  - chore: update thread health-check logging
@@ -3,7 +3,7 @@
3
3
  module Ductwork
4
4
  module Processes
5
5
  class JobWorker
6
- attr_reader :thread, :last_hearthbeat_at
6
+ attr_reader :thread, :last_hearthbeat_at, :job
7
7
 
8
8
  def initialize(pipeline, id)
9
9
  @pipeline = pipeline
@@ -47,7 +47,8 @@ module Ductwork
47
47
  role: :job_worker,
48
48
  pipeline: pipeline
49
49
  )
50
- job = Ductwork.wrap_with_app_executor do
50
+
51
+ @job = Ductwork.wrap_with_app_executor do
51
52
  Job.claim_latest(pipeline)
52
53
  end
53
54
 
@@ -55,6 +56,8 @@ module Ductwork
55
56
  Ductwork.wrap_with_app_executor do
56
57
  job.execute(pipeline)
57
58
  end
59
+
60
+ @job = nil
58
61
  else
59
62
  Ductwork.logger.debug(
60
63
  msg: "No job to claim, looping",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ductwork
4
- VERSION = "0.10.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ductwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Ewing