module Resque::Plugins::JobHistory

Include in a Resque Job to keep a history of the execution of the job. Every job keeps its own independent history so that you can see when an individual job was run.

Constants

MAX_JOB_HISTORY

Redis map:

job_history - a set of all of the class names of all jobs
job_history..linear_jobs - a list of the IDs for all jobs that have run in the order
                                       they were started.
job_history..total_linear_jobs - The total number of jobs added to the linear list.
job_history..linear_job_classes - The total number of jobs added to the linear list.
job_history.<class_name>.max_jobs - The maximum number of jobs that have run concurrently
                                    for this class.
job_history.<class_name>.total_failed_jobs - The total number of jobs that have failed.
job_history.<class_name>.total_running_jobs - The total number of jobs that have been run.
job_history.<class_name>.total_finished_jobs - The maximum number of jobs that have run for
                                               this class.
job_history.<class_name>.running_jobs - a list of the IDs for all running jobs in the order
                                       they were started.
job_history.<class_name>.finished_jobs - a list of rhe IDs for all finished jobs in the
                                        order they completed.
job_history.<class_name>.<job_id> - a hash of values detailing the job
  start_time
  args - JSON encoded array of encoded args
  end_time
  error
PAGE_SIZE
PURGE_AGE