mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Don't postpone the import job for 5 seconds, just run it immediately
This commit is contained in:
parent
1ef2c67133
commit
23a691b014
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue