lib/mutx/commands/stop.rb in mutx-0.1.34 vs lib/mutx/commands/stop.rb in mutx-0.1.35
- old
+ new
@@ -46,9 +46,18 @@
File.delete("#{Dir.pwd}/mutx/sidekiq_cron_pid")
end
+ if File.exist? "#{Dir.pwd}/mutx/sidekiq_update_started_pid"
+ sidekiq_update_started_pid = IO.read("#{Dir.pwd}/mutx/sidekiq_update_started_pid").split("\n")
+ begin
+ Mutx::Support::Processes.kill_all_these sidekiq_update_started_pid
+ rescue
+ end
+ File.delete("#{Dir.pwd}/mutx/sidekiq_update_started_pid")
+ end
+
# Evaluates if any pid could not be killed (retry)
Mutx::Support::Processes.kill_all_these(Mutx::Support::Processes.mutx_pids)
if Mutx::Support::Processes.mutx_pids.empty?