Module: Resque::Plugins::JobHistory
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/resque/plugins/job_history.rb,
lib/resque/plugins/job_history/job.rb,
lib/resque/plugins/job_history/cleaner.rb,
lib/resque/plugins/job_history/job_list.rb,
lib/resque/plugins/job_history/job_search.rb,
lib/resque/plugins/job_history/history_list.rb,
lib/resque/plugins/job_history/history_details.rb
Overview
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.
Defined Under Namespace
Modules: ClassMethods Classes: Cleaner, HistoryDetails, HistoryList, Job, JobList, JobSearch
Constant Summary collapse
- 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
200
- PAGE_SIZE =
25
- PURGE_AGE =
24.hours