Class: Karafka::Web::Pro::Commanding::Commands::Quiet
- 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
-
#call ⇒ Object
Performs the command if not in embedded mode.
Instance Method Details
#call ⇒ Object
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 |