Performs the appropriate updates to Elasticsearch after a LinksUpdate is completed.
More...
|
const | UPDATE_KIND = 'update_kind' |
|
const | ROOT_EVENT_TIME = 'root_event_time' |
|
const | PAGE_CHANGE = 'page_change' |
| a change made to the page, new revision/delete/restore
|
|
const | PAGE_REFRESH = 'page_refresh' |
| a change that could possibly change the rendered output of the page
|
|
const | VISIBILITY_CHANGE = "visibility_change" |
| a change emitted when detecting a visibility change on a past revision theoretically not needed but is being triggered out of caution as generally visibility changes occur to hide harmful content.
|
|
const | SANEITIZER = "saneitizer" |
| Change issued from the saneitizer, either a fixup or a forced update.
|
|
const | CLUSTER = 'cluster' |
| param key to store the target elastic cluster
|
|
Performs the appropriate updates to Elasticsearch after a LinksUpdate is completed.
The page itself is updated first then a second copy of this job is queued to update linked articles if any links change. The job can be 'prioritized' via the 'prioritize' parameter which will switch it to a different queue then the non-prioritized jobs. Prioritized jobs will never be deduplicated with non-prioritized jobs which is good because we can't control which job is removed during deduplication. In our case it'd only be ok to remove the non-prioritized version.
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