From b458e8cabc079151fd24f4516baadb2b00e7520f Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 21 May 2015 13:09:50 -0700 Subject: [PATCH] fixes #2371 --- app/models/post.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/models/post.rb b/app/models/post.rb index bd7315f35..a8a2eac5c 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1497,7 +1497,13 @@ class Post < ActiveRecord::Base def update_iqdb_async if Danbooru.config.iqdb_hostname_and_port && File.exists?(preview_file_path) Danbooru.config.all_server_hosts.each do |host| - delay(:queue => host).update_iqdb + if has_tag?("ugoira") + run_at = 10.seconds.from_now + else + run_at = Time.from_now + end + + delay(:queue => host, :run_at => run_at).update_iqdb end end end