30 seconds wait for screenshot (from 1 min)

This commit is contained in:
Kyle Drake 2016-09-20 21:00:53 +00:00
parent 6132875b6b
commit 1c98e591af
4 changed files with 4 additions and 4 deletions

View file

@ -150,5 +150,5 @@ CSV.foreach("./files/country_codes.csv") do |row|
end end
gandi_opts = {} gandi_opts = {}
gandi_opts[:env] = :test unless ENV['RACK_ENV'] == 'production' gandi_opts[:env] = :test # unless ENV['RACK_ENV'] == 'production'
$gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts $gandi = Gandi::Session.new $config['gandi_api_key'], gandi_opts

View file

@ -1446,7 +1446,7 @@ class Site < Sequel::Model
purge_cache path purge_cache path
if pathname.extname.match HTML_REGEX if pathname.extname.match HTML_REGEX
ScreenshotWorker.perform_in 1.minute, values[:username], relative_path ScreenshotWorker.perform_in 30.seconds, values[:username], relative_path
elsif pathname.extname.match IMAGE_REGEX elsif pathname.extname.match IMAGE_REGEX
ThumbnailWorker.perform_async values[:username], relative_path ThumbnailWorker.perform_async values[:username], relative_path
end end

View file

@ -21,7 +21,7 @@ daemonize
pidfile '/var/run/neocities/neocities.pid' pidfile '/var/run/neocities/neocities.pid'
stdout_redirect '/var/log/neocities/neocities.log', '/var/log/neocities/neocities-errors.log', true stdout_redirect '/var/log/neocities/neocities.log', '/var/log/neocities/neocities-errors.log', true
quiet quiet
workers processor_count workers 4
worker_timeout 600 worker_timeout 600
preload_app! preload_app!
on_worker_boot { DB.disconnect } on_worker_boot { DB.disconnect }

View file

@ -21,7 +21,7 @@ Rainbows! do
client_max_body_size 100*1024*1024 # 100 Megabytes client_max_body_size 100*1024*1024 # 100 Megabytes
worker_processes processor_count worker_processes 4
worker_connections 32 worker_connections 32
timeout 600 # 10 minutes timeout 600 # 10 minutes