Ottomata has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/365662 )

Change subject: Revert "Remove time command from statistics::wmde crons"
......................................................................


Revert "Remove time command from statistics::wmde crons"

This reverts commit 9aa81c9ab49e8ac13a738133956c24768f9569ee.

Change-Id: Ie422227b6ee927420777ce39b072b43aebc797d8
---
M modules/statistics/manifests/wmde.pp
1 file changed, 4 insertions(+), 4 deletions(-)

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



diff --git a/modules/statistics/manifests/wmde.pp 
b/modules/statistics/manifests/wmde.pp
index f1bb980..8e4520b 100644
--- a/modules/statistics/manifests/wmde.pp
+++ b/modules/statistics/manifests/wmde.pp
@@ -125,7 +125,7 @@
     # Note: some of the scripts run by this cron need access to secrets!
     # Docs can be seen at 
https://github.com/wikimedia/analytics-wmde-scripts/blob/master/README.md
     cron { 'daily.03':
-        command => "${scripts_dir}/cron/daily.03.sh ${scripts_dir} >> 
${log_dir}/daily.03.log 2>&1",
+        command => "time ${scripts_dir}/cron/daily.03.sh ${scripts_dir} >> 
${log_dir}/daily.03.log 2>&1",
         hour    => '3',
         minute  => '0',
         require => [
@@ -136,7 +136,7 @@
     }
 
     cron { 'daily.12':
-        command => "${scripts_dir}/cron/daily.12.sh ${scripts_dir} >> 
${log_dir}/daily.12.log 2>&1",
+        command => "time ${scripts_dir}/cron/daily.12.sh ${scripts_dir} >> 
${log_dir}/daily.12.log 2>&1",
         hour    => '12',
         minute  => '0',
         require => [
@@ -146,7 +146,7 @@
     }
 
     cron { 'weekly':
-        command => "${scripts_dir}/cron/weekly.sh ${scripts_dir} >> 
${log_dir}/weekly.log 2>&1",
+        command => "time ${scripts_dir}/cron/weekly.sh ${scripts_dir} >> 
${log_dir}/weekly.log 2>&1",
         weekday => '7',
         hour    => '01',
         minute  => '0',
@@ -157,7 +157,7 @@
     }
 
     cron { 'wmde/toolkit-analyzer-build':
-        command => "java -Xmx2g -jar 
${dir}/src/toolkit-analyzer-build/toolkit-analyzer.jar --processors Metric 
--store ${dir}/data --latest >> ${log_dir}/toolkit-analyzer.log 2>&1",
+        command => "time java -Xmx2g -jar 
${dir}/src/toolkit-analyzer-build/toolkit-analyzer.jar --processors Metric 
--store ${dir}/data --latest >> ${log_dir}/toolkit-analyzer.log 2>&1",
         hour    => '12',
         minute  => '0',
     }

-- 
To view, visit https://gerrit.wikimedia.org/r/365662
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie422227b6ee927420777ce39b072b43aebc797d8
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: RobH <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to