Created
September 20, 2011 22:15
-
-
Save benzittlau/1230582 to your computer and use it in GitHub Desktop.
Various Delayed Job snippets
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
# List delayed jobs | |
ruby-1.9.2-p180 :002 > Delayed::Job.all.to_a | |
# Generate delayed job mongoid indexes | |
rails runner 'Delayed::Backend::Mongoid::Job.create_indexes' | |
# Work off the delayed job queue | |
Delayed::Worker.new.work_off | |
# Disabled delayed jobs during test | |
Delayed::Worker.delay_jobs = !Rails.env.test? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment