Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ rails c
- Loading development environment (Rails 3.1.3)
- 1.9.3p0 :002 > Resque::Worker.working.each{|w| w.done_working}
- $ redis-cli FLUSHDB
- $ redis-cli FLUSHALL
- FLUSHDB - Removes data from your connection's CURRENT database.
- FLUSHALL - Removes data from ALL databases.
- Jobs in queue aren't processing, try this:
- rake resque:work QUEUE='*'
- Rails console:
- [14] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Resque.info
- => {:pending=>0,
- :processed=>1,
- :queues=>1,
- :workers=>0,
- :working=>0,
- :failed=>1,
- :servers=>["redis://localhost:6379/0"],
- :environment=>"test"}
- # view queues
- [15] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Resque.queues
- => ["remote_content"]
- # to work queue
- [16] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Resque::Worker.new('remote_content', {}).work
- # to work 1 job in queue(if 3 jobs are pending, only 1 will complete)
- [4] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_2>)> Resque::Worker.new('remote_content', {}).process
- => 1
Add Comment
Please, Sign In to add comment