Skip to content

Commit

Permalink
forgot to commit a method
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnader committed Oct 28, 2010
1 parent 2c42671 commit 6797944
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/delayed/worker.rb
Expand Up @@ -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.