Class: SolidQueueGuard::Checks::Config::PumaColocatedCheck
- Defined in:
- lib/solid_queue_guard/checks/config/puma_colocated_check.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SolidQueueGuard::Checks::Base
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/solid_queue_guard/checks/config/puma_colocated_check.rb', line 7 def call return pass(check_id, 'No config/puma.rb found') unless PumaPluginSupport.puma_config_path.exist? if PumaPluginSupport.puma_plugin_enabled? if Rails.env.production? warn( check_id, 'Solid Queue Puma plugin is enabled in production', suggestion: 'Run Solid Queue in a dedicated job process for better isolation and memory management' ) else pass(check_id, 'Solid Queue Puma plugin detected (non-production environment)') end else pass(check_id, 'Solid Queue is not co-located with Puma') end end |