I've got an application that after each deploy needs to kill specific Sidekiq worker. As it's api suggests I can do it by removing all jobs from queue Sidekiq::Queue.new.clear
.
However, after running this command the number of worker sizes Sidekiq::Workers.new.size
still the same. Actually, I've tried a lot of methods but nothing works. Please, help!