inst-jobs 0.15.2 → 0.15.3

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
  SHA256:
3
- metadata.gz: e0deb2c3e21143ca228243ad931851ee5c037bfa749a45942fa4332df42522cb
4
- data.tar.gz: 278eb710b0c50dd2421be52e580971f1e2c2eef9ea39f32e34c27773ff0c6745
3
+ metadata.gz: 10932bf1b86d470d75c1fe032caae2bc543af1c572d275290a1d7896793b26e0
4
+ data.tar.gz: dd478314767f53faed9da59ec65f6832409f56de17b9c702d5c3afc04610b1cb
5
5
  SHA512:
6
- metadata.gz: 137a69c00228bb49bda3bea22287d3885affea3739cd7a768dce5cb88902f6677bc9f38780d755abb4f5842d4ccb1253b5a5eb95c3b12172f228b16570c19d23
7
- data.tar.gz: 62ad7ce04753f85ce61e1b3ab99fe64635ee119b797af36209d164ed199024c020a7f9056e0affe620091a737ea05b652a54dbe417a7cd02248cd70314635605
6
+ metadata.gz: 1a3ecfa5f50c56c224a98cc943a967a3dcfe211568633e4439fe4757c32faa444208d7b8c7f1f35dc9a85e6a910e9c451c772f02be95eb2d0a7af3b023520f9e
7
+ data.tar.gz: 17c600b05818543b14292af64e964605629a79bf9c544944ec58149170808ef0e9ec3b1f01349623c43a8c1a4a200c97095ee5e5955e3a3d1c66ec39850fe7e1
@@ -1,3 +1,3 @@
1
1
  module Delayed
2
- VERSION = "0.15.2"
2
+ VERSION = "0.15.3"
3
3
  end
@@ -132,6 +132,7 @@ class ParentProcess
132
132
  workers.unshift(client)
133
133
  next
134
134
  end
135
+ client.working = true
135
136
  begin
136
137
  logger.debug("Sending prefetched job #{job.id} to #{client.name}")
137
138
  client_timeout { Marshal.dump(job, client.socket) }
@@ -87,9 +87,12 @@ RSpec.describe Delayed::WorkQueue::ParentProcess::Server do
87
87
  expect(Delayed::Job).to receive(:get_and_lock_next_available).once.with(*job_args).and_return(jobs)
88
88
  Marshal.dump(["worker_name1", worker_config], client)
89
89
  subject.run_once
90
+ expect(subject).to_not be_all_workers_idle
90
91
  expect(Marshal.load(client)).to eq(job)
92
+
91
93
  Marshal.dump(["worker_name1", worker_config], client)
92
94
  subject.run_once
95
+ expect(subject).to_not be_all_workers_idle
93
96
  expect(Marshal.load(client)).to eq(job2)
94
97
  end
95
98
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inst-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-08-23 00:00:00.000000000 Z
12
+ date: 2018-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord