mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Wake que less often, now every 1 second instead of 0.01 second #2724
This commit is contained in:
parent
48c22bb538
commit
c347913732
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ end
|
|||
|
||||
Que.logger.level = Logger.const_get((ENV['QUE_LOG_LEVEL'] || 'INFO').upcase)
|
||||
Que.worker_count = 1
|
||||
Que.wake_interval = (ENV['QUE_WAKE_INTERVAL'] || 0.1).to_f
|
||||
Que.wake_interval = (ENV['QUE_WAKE_INTERVAL'] || 1).to_f
|
||||
Que.mode = :async
|
||||
|
||||
# When changing how signals are caught, be sure to test the behavior with
|
||||
|
@ -38,6 +38,6 @@ at_exit do
|
|||
end
|
||||
|
||||
loop do
|
||||
sleep 0.01
|
||||
sleep 1
|
||||
break if stop
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue