Ottomata has uploaded a new change for review.
https://gerrit.wikimedia.org/r/75882
Change subject: Running geowiki-process-data cron daily
......................................................................
Running geowiki-process-data cron daily
Change-Id: Ie790d9b4444bfc13991ba1f203eeb331994b720f
---
M manifests/misc/statistics.pp
1 file changed, 4 insertions(+), 8 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/82/75882/1
diff --git a/manifests/misc/statistics.pp b/manifests/misc/statistics.pp
index 6802219..9eb452d 100644
--- a/manifests/misc/statistics.pp
+++ b/manifests/misc/statistics.pp
@@ -899,13 +899,9 @@
# store results in the research staging database.
# Backup files will be kept $geowiki_backups_path.
cron { 'geowiki-process-data':
- minute => 0,
- command => "/usr/bin/python
${geowiki_path}/geowiki/process_data.py\
--o ${$geowiki_backups_path}\
---wpfiles ${geowiki_path}/geowiki/data/all_ids.tsv --daily\
---start=`date --date='-1 day' +\\%Y-\\%m-\\%d`\
---end=`date --date='1 day' +\\%Y-\\%m-\\%d`\
---source_sql_cnf=${geowiki_path}/.globaldev.my.cnf\
---dest_sql_cnf=${geowiki_path}/.research.my.cnf",
+ minute => 0,
+ hour => 12,
+ command => "/usr/bin/python
${geowiki_path}/geowiki/process_data.py -o ${$geowiki_backups_path} --wpfiles
${geowiki_path}/geowiki/data/all_ids.tsv --daily --start=`date --date='-1 day'
+\\%Y-\\%m-\\%d` --end=`date --date='1 day' +\\%Y-\\%m-\\%d`
--source_sql_cnf=${geowiki_path}/.globaldev.my.cnf
--dest_sql_cnf=${geowiki_path}/.research.my.cnf",
+ require => File[$geowiki_backups_path],
}
}
--
To view, visit https://gerrit.wikimedia.org/r/75882
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie790d9b4444bfc13991ba1f203eeb331994b720f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits