delay video/preview gen of ugoira from 2sec to 10sec

This commit is contained in:
r888888888
2016-02-02 16:35:04 -08:00
parent 00a589815f
commit 3d9b7f797a

View File

@@ -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