MediaWiki
REL1_22
|
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 | |
assertMemoryOK () | |
Make sure that this script is not too close to the memory usage limit. | |
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::assertMemoryOK | ( | ) | [private] |
Make sure that this script is not too close to the memory usage limit.
MWException |
Definition at line 152 of file runJobs.php.
Referenced by execute().
RunJobs::execute | ( | ) |
Reimplemented from Maintenance.
Definition at line 53 of file runJobs.php.
References $count, $error, $flags, $job, $t, $wgTitle, assertMemoryOK(), Maintenance\error(), false, Maintenance\getOption(), global, Maintenance\hasOption(), Title\newFromText(), MWException\report(), runJobsLog(), JobQueueGroup\singleton(), JobQueueGroup\TYPE_DEFAULT, JobQueueGroup\USE_CACHE, JobQueueGroup\USE_PRIORITY, wfProfileIn(), wfProfileOut(), 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 174 of file runJobs.php.
References Maintenance\output(), wfDebugLog(), and wfTimestamp().
Referenced by execute().