run the BackupChunksMerger job in 5 seconds

This commit is contained in:
Régis Hanol 2016-03-03 12:01:13 +01:00
parent 5a6c34fb8a
commit f3c868e7bb
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class Admin::BackupsController < Admin::AdminController
# when all chunks are uploaded
if uploaded_file_size + current_chunk_size >= total_size
# merge all the chunks in a background thread
Jobs.enqueue(:backup_chunks_merger, filename: filename, identifier: identifier, chunks: chunk_number)
Jobs.enqueue_in(5.seconds, :backup_chunks_merger, filename: filename, identifier: identifier, chunks: chunk_number)
end
render nothing: true