From 3d9b7f797a87d348b5d6aeb94d948f6124843aae Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 2 Feb 2016 16:35:04 -0800 Subject: [PATCH] delay video/preview gen of ugoira from 2sec to 10sec --- app/logical/pixiv_ugoira_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/pixiv_ugoira_service.rb b/app/logical/pixiv_ugoira_service.rb index 6e4de02eb..248428a8d 100644 --- a/app/logical/pixiv_ugoira_service.rb +++ b/app/logical/pixiv_ugoira_service.rb @@ -17,7 +17,7 @@ class PixivUgoiraService def generate_resizes(source_path, output_path, preview_path, delay = true) # Run this a bit in the future to give the upload process time to move the file if delay - PixivUgoiraConverter.delay(:queue => Socket.gethostname, :run_at => 2.seconds.from_now, :priority => -1).convert(source_path, output_path, preview_path, @frame_data) + PixivUgoiraConverter.delay(:queue => Socket.gethostname, :run_at => 10.seconds.from_now, :priority => -1).convert(source_path, output_path, preview_path, @frame_data) else PixivUgoiraConverter.convert(source_path, output_path, preview_path, @frame_data) end