diff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rb index 47c73a54..f31f50f1 100644 --- a/app/controllers/imports_controller.rb +++ b/app/controllers/imports_controller.rb @@ -26,9 +26,7 @@ class ImportsController < ApplicationController import.id end - import_ids.each do |import_id| - ImportJob.set(wait: 5.seconds).perform_later(current_user.id, import_id) - end + import_ids.each { ImportJob.perform_later(current_user.id, _1) } redirect_to imports_url, notice: "#{files.size} files are queued to be imported in background", status: :see_other rescue StandardError => e