Skip to content

Instantly share code, notes, and snippets.

Hunter HunterMeyer

Block or report user

Report or block HunterMeyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@HunterMeyer
HunterMeyer / clear_failed_jobs.rb
Created Feb 6, 2019
Clear Failed Resque Jobs
View clear_failed_jobs.rb
class ClearFailedJobs
# Clear all the failed resque jobs for a specific class
# ==== Attributes
#
# * +klasses+ - The Ruby classes to clear as a String or Array of Strings
#
# ==== Examples
# ClearFailedJobs.by_class('Exports::ReportCSV')
# ClearFailedJobs.by_class(['Exports::ReportCSV', 'Exports::ReportPDF'])
def self.by_class(klasses, queue = 'failed')
You can’t perform that action at this time.