MediaWiki
REL1_21
|
Maintenance script that runs pending jobs. More...
Public Member Functions | |
__construct () | |
execute () | |
memoryLimit () | |
Normally we disable the memory_limit when running admin scripts. | |
Private Member Functions | |
runJobsLog ($msg) | |
Log the job message. |
Maintenance script that runs pending jobs.
Definition at line 35 of file runJobs.php.
Reimplemented from Maintenance.
Definition at line 36 of file runJobs.php.
References Maintenance\addOption().
RunJobs::execute | ( | ) |
Reimplemented from Maintenance.
Definition at line 53 of file runJobs.php.
References $count, $error, $job, $t, $wgTitle, Maintenance\error(), false, Maintenance\getOption(), global, Maintenance\hasOption(), Title\newFromText(), runJobsLog(), JobQueueGroup\singleton(), JobQueueGroup\TYPE_DEFAULT, JobQueueGroup\USE_CACHE, wfGetDB(), wfReadOnly(), and wfWaitForSlaves().
Normally we disable the memory_limit when running admin scripts.
Some scripts may wish to actually set a limit, however, to avoid blowing up unexpectedly. We also support a --memory-limit option, to allow sysadmins to explicitly set one if they'd prefer to override defaults (or for people using Suhosin which yells at you for trying to disable the limits)
Reimplemented from Maintenance.
Definition at line 45 of file runJobs.php.
References Maintenance\hasOption().
RunJobs::runJobsLog | ( | $ | msg | ) | [private] |
Log the job message.
$msg | String The message to log |
Definition at line 140 of file runJobs.php.
References Maintenance\output(), wfDebugLog(), and wfTimestamp().
Referenced by execute().