This file contains 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
queue = Sidekiq::Queue.new("practice_fusion") | |
queue.each do |job| | |
job.delete if job.klass == 'PracticeFusionWorkers::PatientDocumentsSyncer' | |
end | |
# Way 2 | |
ss = Sidekiq::ScheduledSet.new | |
jobs = ss.select {|job| job.klass == 'PracticeFusionWorkers::PatientDocumentsSyncer' } | |
jobs.each(&:delete) |
This file contains 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
-- First opthimize the table where you want to claim space | |
opthimize table <table-name>; | |
-- Delete logs except latest log file | |
show binary logs; | |
PURGE BINARY LOGS TO 'mysql-bin.006920'; |