Sha256: 6cc90858d68f4acf948f31a7f2d5d6abd4d86c15b71c3453434cc228b0c3e041
Contents?: true
Size: 391 Bytes
Versions: 1
Compression:
Stored size: 391 Bytes
Contents
# encoding: utf-8 module HireFire module Backend module Mongoid ## # Counts the amount of queued jobs in the database, # failed jobs and jobs scheduled for the future are excluded # # @return [Fixnum] def jobs Delayed::Job.where( :failed_at => nil, :run_at.lte => Time.now ).count end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hirefire-0.1.0 | lib/hirefire/backend/mongoid.rb |