CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Create saneitize jobs for a single execution of a saneitizer loop. More...
Public Member Functions | |
__construct ( $profileName, $pushJobFreq, $chunkSize, $minLoopDuration, $logger=null) | |
run (Document $jobInfo, $numJobs, $minId, $maxId) | |
Generate jobs for one run of a saneitize loop. | |
Create saneitize jobs for a single execution of a saneitizer loop.
Maintains state in the job info pertaining to current position in the loop. The job info must be persisted between runs.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
CirrusSearch\Maintenance\SaneitizeLoop::__construct | ( | $profileName, | |
$pushJobFreq, | |||
$chunkSize, | |||
$minLoopDuration, | |||
$logger = null ) |
string | $profileName | Name of the saneitizer profile to use in created jobs |
int | $pushJobFreq | The frequency, in seconds, that the saneitize loop is executed |
int | $chunkSize | The number of pages to include per job |
int | $minLoopDuration | Minimum number of seconds between loop restarts |
callable | null | $logger | Callable accepting 2 arguments, first a log message and second either a channel name or null. |
CirrusSearch\Maintenance\SaneitizeLoop::run | ( | Document | $jobInfo, |
$numJobs, | |||
$minId, | |||
$maxId ) |
Generate jobs for one run of a saneitize loop.
Document | $jobInfo | |
int | $numJobs | The number of jobs to create |
int | $minId | Minimum page_id on the wiki |
int | $maxId | Maximum page_id on the wiki |