blob: 65d40336f18b43d19ce089c817cfcc2b46abc292 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class UploadChecksumWorker
include ApplicationWorker
def perform(upload_id)
upload = Upload.find(upload_id)
upload.calculate_checksum!
upload.save!
rescue ActiveRecord::RecordNotFound
Rails.logger.error("UploadChecksumWorker: couldn't find upload #{upload_id}, skipping")
end
end
|