Class: Gitlab::ActionCable::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/action_cable/config.rb

Class Method Summary collapse

Class Method Details

.in_app?Boolean

Returns:

  • (Boolean)

7
8
9
# File 'lib/gitlab/action_cable/config.rb', line 7

def in_app?
  Gitlab::Utils.to_boolean(ENV.fetch('ACTION_CABLE_IN_APP', false))
end

.worker_pool_sizeObject


11
12
13
# File 'lib/gitlab/action_cable/config.rb', line 11

def worker_pool_size
  ENV.fetch('ACTION_CABLE_WORKER_POOL_SIZE', 4).to_i
end