Class: Karafka::Web::Pro::Commanding::Commands::Consumers::Quiet
- Defined in:
- lib/karafka/web/pro/commanding/commands/consumers/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 Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call ⇒ Object
Performs the command if not in embedded mode.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Karafka::Web::Pro::Commanding::Commands::Base
Instance Method Details
#call ⇒ Object
Performs the command if not in embedded mode
20 21 22 23 24 25 26 |
# File 'lib/karafka/web/pro/commanding/commands/consumers/quiet.rb', line 20 def call return unless standalone? ::Process.kill('TSTP', ::Process.pid) result(status: 'applied') end |