Make Rubocop happy

parent 88d0560e
......@@ -37,6 +37,7 @@ module Geo
@loops = 0
end
# rubocop:disable Gitlab/ModuleWithInstanceVariables
def perform(shard_name)
@shard_name = shard_name
@start_time = Time.now.utc
......@@ -47,6 +48,7 @@ module Geo
schedule_jobs
end
end
# rubocop:enable Gitlab/ModuleWithInstanceVariables
private
......
......@@ -48,7 +48,9 @@ module Geo
update_jobs_in_progress
unless over_capacity?
if over_capacity?
sleep(1)
else
# This will stream the results one by one
# until there are no more results to fetch.
result = connection.get_result
......@@ -58,8 +60,6 @@ module Geo
result.each do |row|
schedule_job(row['id'])
end
else
sleep(1)
end
end
rescue => error
......
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