Class: SolidQueueGuard::Checks::Registry Private

Inherits:
Object
  • Object
show all
Defined in:
lib/solid_queue_guard/checks/registry.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Constant Summary collapse

CONFIG_CHECKS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[
  Config::AdapterCheck,
  Config::QueueDatabaseCheck,
  Config::ConnectsToCheck,
  Config::QueueSchemaCheck,
  Config::ThreadPoolCheck,
  Config::WorkerCoverageCheck,
  Config::SchedulerConfigCheck,
  Config::EnvFlagsCheck,
  Config::ProcessHeartbeatConfigCheck,
  Config::PumaColocatedCheck,
  Config::TopologyRecommendationCheck
].freeze
RUNTIME_CHECKS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

[
  Runtime::QueueLagCheck,
  Runtime::StaleProcessCheck,
  Runtime::ProcessTopologyCheck,
  Runtime::DispatcherCheck,
  Runtime::ScheduledBacklogCheck,
  Runtime::BlockedJobsCheck,
  Runtime::OrphanedClaimsCheck,
  Runtime::FailedJobsCheck,
  Runtime::RecurringStaleCheck,
  Runtime::PausedQueueLagCheck,
  Runtime::PidfileCheck,
  Runtime::FinishedJobsGrowthCheck
].freeze

Class Method Summary collapse

Class Method Details

.for(scope) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



37
38
39
40
41
42
43
44
45
# File 'lib/solid_queue_guard/checks/registry.rb', line 37

def for(scope)
  case scope.to_sym
  when :config then CONFIG_CHECKS
  when :runtime then RUNTIME_CHECKS
  when :all then CONFIG_CHECKS + RUNTIME_CHECKS
  else
    raise ArgumentError, "Unknown scope: #{scope}"
  end
end