Class: Karafka::Web::Pro::Commanding::Commands::Quiet

Inherits:
Base
  • Object
show all
Defined in:
lib/karafka/web/pro/commanding/commands/quiet.rb

Overview

Note:

Does not work in an embedded mode because we do not own the Ruby process.

Sends a signal to quiet the consumer

Instance Method Summary collapse

Instance Method Details

#callObject

Performs the command if not in embedded mode



24
25
26
27
28
# File 'lib/karafka/web/pro/commanding/commands/quiet.rb', line 24

def call
  return unless standalone?

  ::Process.kill('TSTP', ::Process.pid)
end