mirror of
https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot
synced 2024-11-25 13:32:38 +01:00
new_wikis_handler: search index should be updated after sync-wikiversions
This commit is contained in:
parent
2aad3faa26
commit
4571490a53
1 changed files with 6 additions and 4 deletions
|
@ -372,10 +372,6 @@ def add_create_instructions(parts, shard, language_code, db_name, task_tid):
|
||||||
family=parts[1],
|
family=parts[1],
|
||||||
db=db_name,
|
db=db_name,
|
||||||
url='.'.join(parts)))
|
url='.'.join(parts)))
|
||||||
add_text('`{search_path} --wiki={dbname} --cluster=all`'.format(
|
|
||||||
search_path='mwscript extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php',
|
|
||||||
dbname=db_name,
|
|
||||||
))
|
|
||||||
summary = 'Creating {db_name} ({phab})'.format(
|
summary = 'Creating {db_name} ({phab})'.format(
|
||||||
db_name=db_name, phab=task_tid)
|
db_name=db_name, phab=task_tid)
|
||||||
add_text('On deploy1001:')
|
add_text('On deploy1001:')
|
||||||
|
@ -391,6 +387,12 @@ def add_create_instructions(parts, shard, language_code, db_name, task_tid):
|
||||||
add_text(sync_file('wmf-config/InitialiseSettings.php', summary))
|
add_text(sync_file('wmf-config/InitialiseSettings.php', summary))
|
||||||
if parts[1] != 'wikimedia':
|
if parts[1] != 'wikimedia':
|
||||||
add_text(sync_file('langlist', summary))
|
add_text(sync_file('langlist', summary))
|
||||||
|
|
||||||
|
add_text('On mwmaint1002:')
|
||||||
|
add_text('`{search_path} --wiki={dbname} --cluster=all`'.format(
|
||||||
|
search_path='mwscript extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php',
|
||||||
|
dbname=db_name,
|
||||||
|
))
|
||||||
add_text('`scap update-interwiki-cache`')
|
add_text('`scap update-interwiki-cache`')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue