Class: SolidQueueGuard::Checks::Config::AsyncSupervisorConfigCheck

Inherits:
Base
  • Object
show all
Defined in:
lib/solid_queue_guard/checks/config/async_supervisor_config_check.rb

Instance Method Summary collapse

Methods inherited from Base

call, check_id, #initialize

Constructor Details

This class inherits a constructor from SolidQueueGuard::Checks::Base

Instance Method Details

#callObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/solid_queue_guard/checks/config/async_supervisor_config_check.rb', line 7

def call
  if PumaPluginSupport.async_supervisor_mode?
    warn(
      check_id,
      'Solid Queue supervisor is running in async mode',
      suggestion: [
        'Review thread and database pool sizing;',
        'the processes option in queue.yml is ignored in async mode'
      ].join(' '),
      metadata: { supervisor_mode: 'async' }
    )
  else
    pass(check_id, 'Solid Queue supervisor is running in fork mode')
  end
end