Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #sometimes you push wrong values to your Resque
- #this simple fix can help you to change class name
- # for current task
- workers = Resque::Worker.working
- workers.each do |worker|
- job = worker.job
- job['payload']['class'] = "your_class"
- s = Struct.new(:queue, :payload).new(job["queue"], job['payload'])
- worker.working_on(s)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement