Permalink
Browse files

forgot to commit a method

  • Loading branch information...
iamnader committed Oct 28, 2010
1 parent 2c42671 commit 6797944e317a9d16a5bbc8bbde7232eb66964c23
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/delayed/worker.rb
View
@@ -183,4 +183,8 @@ def reserve_and_run_one_job
run(job) if job
end
end
+
+ def find_available_jobs
+ Delayed::Job.find_available(name, 5, self.class.max_run_time)
+ end
end

0 comments on commit 6797944

Please sign in to comment.