Method: Kthxbye#job_results
- Defined in:
- lib/kthxbye.rb
#job_results(queue, id = nil) ⇒ Object
Returns either the job results for a specific job (if id specified). If a job is not specified, it returns all the job results for the given queue.
200 201 202 203 204 205 206 |
# File 'lib/kthxbye.rb', line 200 def job_results(queue, id=nil) if id decode( redis.hget( "result-store:#{queue}", id ) ) else Array( redis.hgetall( "result-store:#{queue}" ) ) end end |