Skip to content

Commit 954607a

Browse files
committed
work in progress
1 parent d2b20da commit 954607a

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

run_bundle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bundle install
1010
bundle update
1111
cd ../src-colladmin
1212
rm -rf vendor/bundle/ruby/3*/bundler/gems/mrt-zk*
13-
bundle install --redownload
13+
bundle install
1414
bundle update
1515
cd ../src-testdriver
1616
bundle install

src-colladmin/Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ gem 'aws-sdk-lambda'
1212
gem 'aws-sdk-s3'
1313
gem 'aws-sdk-ssm'
1414
gem 'csv'
15-
gem 'mrt-zk', git: 'https://github.com/CDLUC3/mrt-zk.git', branch: 'main'
16-
#gem 'mrt-zk', git: 'https://github.com/CDLUC3/mrt-zk.git', branch: 'main', ref: '4f5a5be'
15+
gem 'mrt-zk', git: 'https://github.com/CDLUC3/mrt-zk.git', tag: '1.0.1.j'
1716
gem 'rest-client'
1817
gem 'rubocop'
1918
gem 'uc3-ssm', '0.3.10', git: 'https://github.com/CDLUC3/uc3-ssm.git', branch: 'main'

src-colladmin/Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
GIT
22
remote: https://github.com/CDLUC3/mrt-zk.git
3-
revision: 4f5a5be169dfc9cf9eca403afaa115cfa9fb5d01
3+
revision: 8221456e59169583047c0bb70510bf997b09762e
4+
ref: 8221456
45
branch: main
56
specs:
67
mrt-zk (1.0.1)

src-colladmin/actions/zookeeper_action.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,13 @@ def register_item(item)
109109
end
110110

111111
def perform_action
112+
jobs = MerrittZK::LegacyIngestJob.list_jobs(@zk)
113+
jobs.each do |po|
114+
register_item(QueueEntry.new(po))
115+
end
112116
@zk.children(zk_path).each do |cp|
113-
puts cp
114117
arr = @zk.get("#{zk_path}/#{cp}")
115118
po = QueueItemReader.new(self, cp, arr[0]).payload_object
116-
puts po.to_json
117-
puts MerrittZK::LegacyIngestJob.list_jobs(@zk)
118119
register_item(QueueEntry.new(po))
119120
end
120121
convert_json_to_table('')
@@ -125,7 +126,8 @@ def table_rows(_body)
125126
end
126127

127128
def get_zookeeper_conn
128-
@config.fetch('zookeeper', '').split(',').first
129+
#@config.fetch('zookeeper', '').split(',').first
130+
@config.fetch('zookeeper', '')
129131
end
130132
end
131133

0 commit comments

Comments
 (0)