resque/resque-scheduler — pull request #365 by andreacfm (2014-02-17 17:25:59+00:00)
Title: Resque.delayed?

* Resque.delayed? MyJob => Boolean

``` ruby
# Discover if a job hs been delayed.
# Examples
# Resque.delayed? MyJob
# Resque.delayed? MyJob, id: 1
#
# Returns true if the job has been delayed
def delayed?(klass, *args)
search = encode(job_to_hash(klass, args))
!scheduled_at(klass, *args).empty?
end
```