This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sidekiq/api' | |
| queue = Sidekiq::Queue.new("default") | |
| queue.each do |job| | |
| job.klass # => 'TestWorker' | |
| job.args # => ['easy'] | |
| job.delete if job.jid == 'abcdef1234567890' || job.klass == 'TestWorker' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://help.github.com/en/articles/checking-out-pull-requests-locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps -ax | grep <application name> | |
| kill -9 <PID> | |
| ------------------------------ | |
| kill rails s: | |
| $ lsof -wni tcp:3000 | |
| $ kill -9 PID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters