jobs: migrate file deletion jobs to ActiveJob.

This commit is contained in:
evazion
2019-08-16 20:49:35 -05:00
parent 2b6361369e
commit 868a2256d1
6 changed files with 34 additions and 7 deletions

View File

@@ -166,7 +166,7 @@ class UploadService
# in case this upload never finishes processing, we need to delete the
# distributed files in the future
UploadService::Utils.delay(priority: -1, queue: "default", run_at: 24.hours.from_now).delete_file(upload.md5, upload.file_ext, upload.id)
DeleteUploadFilesJob.set(wait: 24.hours).perform_later(upload.md5, upload.file_ext, upload.id)
end
# these methods are only really used during upload processing even