Commit b63e8f4a authored by Michael Kozono's avatar Michael Kozono

Fallback on checksum jobs

Since `calculate_checksum` depends on `Uploader` classes which are not defined in this background migration and may change at any time.
parent 07150348
...@@ -166,6 +166,8 @@ module Gitlab ...@@ -166,6 +166,8 @@ module Gitlab
return unless exist? return unless exist?
self.checksum = Digest::SHA256.file(absolute_path).hexdigest self.checksum = Digest::SHA256.file(absolute_path).hexdigest
rescue StandardError
schedule_checksum
end end
def exist? def exist?
......
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