Commit e7b87ad9 authored by Nels Nelson's avatar Nels Nelson

Merge branch 'format_progress_output' into 'master'

Format status output

See merge request !1442
parents 79b45646 adaa32b0
......@@ -258,18 +258,23 @@ class Rebalancer
def validate(project)
start = Time.now.to_i
i = 0
timeout = Options[:timeout]
while project.repository_read_only?
sleep 1
project.reload
print '.'
i += 1
print "\n" if i % 80 == 0
elapsed = Time.now.to_i - start
if elapsed >= timeout
print "\n"
log.warn ""
log.warn "Timed out up waiting for project id: #{project.id} to move: #{elapsed} seconds"
break
end
end
print "\n"
if project.repository_storage == Options[:target_file_server]
log.info "Success moving project id:#{project.id}"
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment