Faster restore of containers after puma restart
This commit is contained in:
@ -18,8 +18,8 @@ production:
|
||||
active: true
|
||||
refill:
|
||||
async: false
|
||||
batch_size: 32
|
||||
interval: 30
|
||||
batch_size: 8
|
||||
interval: 15
|
||||
timeout: 60
|
||||
workspace_root: <%= Rails.root.join('tmp', 'files', Rails.env) %>
|
||||
ws_host: ws://localhost:4243
|
||||
|
@ -96,7 +96,7 @@ class DockerContainerPool
|
||||
end
|
||||
|
||||
def self.start_refill_task
|
||||
@refill_task = Concurrent::TimerTask.new(execution_interval: config[:refill][:interval], run_now: false, timeout_interval: config[:refill][:timeout]) { refill }
|
||||
@refill_task = Concurrent::TimerTask.new(execution_interval: config[:refill][:interval], run_now: true, timeout_interval: config[:refill][:timeout]) { refill }
|
||||
@refill_task.execute
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user