1
0
Fork 0
mirror of https://gitlab.wikimedia.org/ladsgroup/Phabricator-maintenance-bot synced 2024-11-23 20:42:38 +01:00

Merge pull request #54 from ebernhardson/update-search-index-config-log

new_wikis_handler: Write Cirrus maint script output to log file
This commit is contained in:
Amir Sarabadani 2023-01-10 21:27:23 +01:00 committed by GitHub
commit 97a38359f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -460,9 +460,10 @@ def add_create_instructions(parts, shard, language_code, db_name, task_tid):
add_text(sync_file('langlist', summary))
add_text('On mwmaint1002:')
add_text('`{search_path} --wiki={dbname} --cluster=all`'.format(
add_text('`{search_path} --wiki={dbname} --cluster=all 2>&1 | tee {log}`'.format(
search_path='mwscript extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php',
dbname=db_name,
log='/tmp/{dbname}.UpdateSearchIndexConfig.log'.format(dbname=db_name),
))
add_text('On deployment host:')