Class: Gitlab::SidekiqMiddleware::PauseControl::Strategies::Zoekt

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/sidekiq_middleware/pause_control/strategies/zoekt.rb

Instance Method Summary collapse

Methods inherited from Base

#perform, #schedule, should_pause?

Methods included from Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Instance Method Details

#should_pause?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/gitlab/sidekiq_middleware/pause_control/strategies/zoekt.rb', line 9

def should_pause?
  ::Feature.enabled?(:zoekt_pause_indexing, type: :ops)
end