Manual:ShowJobs.php

Details
showJobs.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to report the number of jobs currently waiting in master database.

Usage
This script offers several parameters (generic, script dependent and script specific) which may be required in some wiki environments.

Number of jobs per job type
mwscript showJobs.php --wiki=frwiki --group

cirrusSearchIncomingLinkCount: 0 queued; 0 claimed (0 active, 0 abandoned); 79 delayed cirrusSearchLinksUpdatePrioritized: 6 queued; 5 claimed (5 active, 0 abandoned); 0 delayed RestbaseUpdateJobOnDependencyChange: 9380 queued; 24 claimed (2 active, 22 abandoned); 0 delayed MWEchoNotificationEmailBundleJob: 0 queued; 0 claimed (0 active, 0 abandoned); 3 delayed wikibase-addUsagesForPage: 41 queued; 1 claimed (1 active, 0 abandoned); 0 delayed

The grouped output includes one line for every job type that has at least one job currently in the queue. This mode presents three main pieces of information for each active job type:


 * N queued;
 * N is the number of jobs that are ready to run but have not been picked up by a job runner.
 * N claimed (M active, O abandoned);
 * N is the number of jobs that have been claimed but not yet completed by a job runner.
 * M is the number of jobs that are actively running.
 * O is the number of jobs that have exceeded the max job attempts threshold within the last seven days.
 * N delayed;
 * N is the number of jobs that have set a "do not run before" timestamp and are unable to be run yet. At the appropriate time these jobs will be transfered to the main queue.