Ottomata has submitted this change and it was merged.

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, 6 insertions(+), 9 deletions(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/manifests/misc/statistics.pp b/manifests/misc/statistics.pp
index 6802219..1d620f5 100644
--- a/manifests/misc/statistics.pp
+++ b/manifests/misc/statistics.pp
@@ -850,7 +850,7 @@
        git::clone { 'geowiki':
                directory => $geowiki_path,
                origin    => 
"https://gerrit.wikimedia.org/r/p/analytics/editor-geocoding.git";,
-               ensure    => 'latest',
+               ensure    => 'present',
                owner     => $geowiki_user,
        }
 
@@ -899,13 +899,10 @@
        # 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,
+               user    => $geowiki_user,
+               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: merged
Gerrit-Change-Id: Ie790d9b4444bfc13991ba1f203eeb331994b720f
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to