Commit a24c966c authored by Michael Kozono's avatar Michael Kozono
Browse files

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 f5a91924ceb8
......@@ -166,6 +166,8 @@ def calculate_checksum
return unless exist?
self.checksum = Digest::SHA256.file(absolute_path).hexdigest
rescue StandardError
schedule_checksum
end
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