Skip to content

Commit 0666a07

Browse files
committed
data prop for jobs
1 parent 76905c2 commit 0666a07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/ruby/lib/merritt_zk_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def self.list_jobs(zk)
159159
jobs = []
160160
zk.children(@@dir).sort.each do |cp|
161161
next if cp == 'states'
162-
jobs.append(Job.new(cp).load(zk))
162+
jobs.append(Job.new(cp).load(zk).data)
163163
end
164164
jobs
165165
end

src/main/ruby/lib/merritt_zk_queue_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(id, data: nil)
1212
@status = nil
1313
end
1414

15-
attr_reader :id, :status
15+
attr_reader :id, :status, :data
1616

1717
def status_name
1818
status.name

0 commit comments

Comments
 (0)