Remove logging for when trying to obtain lease to backfill repositories

parent aadf99a6
......@@ -37,14 +37,12 @@ class GeoBackfillWorker
end
def try_obtain_lease
logger.info 'Trying to obtain lease to backfill repositories'
uuid = Gitlab::ExclusiveLease.new(lease_key, timeout: LEASE_TIMEOUT).try_obtain
logger.info 'Could not obtain lease to backfill repositories' and return unless uuid
return unless uuid
yield
logger.info('Releasing lease to backfill repositories')
release_lease(uuid)
end
......
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