Skip to content

Commit

Permalink
set access path for migrated nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed May 8, 2024
1 parent 4cd0a0e commit 562b801
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/ruby/lib/merritt_zk_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def self.list_jobs(zk)
job = Access.new(queue, cp).load(zk)
jobjson = job.data
jobjson[:id] = cp
jobjson[:queueNode] = queue
jobjson[:queueNode] = Access.dir(queue)
jobjson[:path] = job.path
jobs.append(jobjson)
end
end
Expand Down
5 changes: 5 additions & 0 deletions src/main/ruby/show_all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def show(zk, arr)
puts j.fetch(:path, '')
puts JSON.pretty_generate(j)
end

MerrittZK::Access.list_jobs(zk).each do |j|
puts j.fetch(:path, '')
puts JSON.pretty_generate(j)
end
end

if ARGV.include?('-clear')
Expand Down

0 comments on commit 562b801

Please sign in to comment.