Class: Karafka::Web::Pro::Commanding::Commands::Consumers::Stop
- Defined in:
- lib/karafka/web/pro/commanding/commands/consumers/stop.rb
Overview
Note:
Does not work in an embedded mode because we do not own the Ruby process.
Sends a signal to stop the process
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
19 20 21 22 23 24 25 |
# File 'lib/karafka/web/pro/commanding/commands/consumers/stop.rb', line 19 def call return unless standalone? ::Process.kill('QUIT', ::Process.pid) result(status: 'applied') end |