lib/resque.rb in resque-mongo-1.3.1 vs lib/resque.rb in resque-mongo-1.4.0

- old
+ new

@@ -196,9 +196,15 @@ # A shortcut to Worker.working def working Worker.working end + # A shortcut to unregister_worker + # useful for command line tool + def remove_worker(worker_id) + worker = Resque::Worker.find(worker_id) + worker.unregister_worker + end # # stats #