Fix exception when submitting an upload and an in-progress preprocessed upload already exists. In this case we forgot to pass the upload params when calling UploadService#delayed_start.
9 lines
198 B
Ruby
9 lines
198 B
Ruby
class UploadServiceDelayedStartJob < ApplicationJob
|
|
queue_as :default
|
|
queue_with_priority(-1)
|
|
|
|
def perform(params, uploader)
|
|
UploadService.new(params).delayed_start(uploader.id)
|
|
end
|
|
end
|