mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 01:01:30 +02:00
tweaks to config
This commit is contained in:
parent
d85482a6c4
commit
4e20af4618
2 changed files with 6 additions and 2 deletions
|
@ -18,6 +18,10 @@ DB = Sequel.connect $config['database'], sslmode: 'disable', max_connections: $c
|
|||
|
||||
Dir.glob('workers/*.rb').each {|w| require File.join(DIR_ROOT, "/#{w}") }
|
||||
|
||||
Backburner.configure do |config|
|
||||
config.default_worker = Backburner::Workers::ThreadsOnFork
|
||||
end
|
||||
|
||||
if defined?(Pry)
|
||||
Pry.commands.alias_command 'c', 'continue'
|
||||
Pry.commands.alias_command 's', 'step'
|
||||
|
@ -47,7 +51,7 @@ if ENV['RACK_ENV'] == 'development' && Server.count == 0
|
|||
end
|
||||
|
||||
Backburner.configure do |config|
|
||||
config.max_job_retries = 3
|
||||
config.max_job_retries = 10
|
||||
config.retry_delay = 200
|
||||
config.respond_timeout = 120
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue