lib/rector/job.rb in rector-0.0.4 vs lib/rector/job.rb in rector-0.0.5

- old
+ new

@@ -33,12 +33,16 @@ # Can do something more reliable for ID generation? "#{id}:#{SecureRandom.hex(8)}" end def join - while @backend.workers_working? + while num_workers_working > 0 sleep 5 end + end + + def num_workers_working + @backend.num_workers_working end def data @data ||= @backend.read_job_data_to_hash end