Joal has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/249100

Change subject: Update camus runs
......................................................................

Update camus runs

Add run parameter to match script update
Add check parameter to webrequest job

Bug: T113252
Change-Id: I5db0f95859ca52ee2cf4f40ead88f68c66607e5a
---
M manifests/role/analytics/refinery.pp
M modules/camus/manifests/job.pp
2 files changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/00/249100/1

diff --git a/manifests/role/analytics/refinery.pp 
b/manifests/role/analytics/refinery.pp
index 78283ed..c7ec30c 100644
--- a/manifests/role/analytics/refinery.pp
+++ b/manifests/role/analytics/refinery.pp
@@ -65,6 +65,7 @@
     # Import webrequest_* topics into /wmf/data/raw/webrequest
     # every 10 minutes.
     camus::job { 'webrequest':
+        check_run => true,
         minute  => '*/10',
     }
 
diff --git a/modules/camus/manifests/job.pp b/modules/camus/manifests/job.pp
index d6b36dc..f818edd 100644
--- a/modules/camus/manifests/job.pp
+++ b/modules/camus/manifests/job.pp
@@ -40,6 +40,7 @@
     $script             = '/srv/deployment/analytics/refinery/bin/camus',
     $user               = 'hdfs',
     $libjars            = undef,
+    $check_run          = undef,
     $template           = "camus/${title}.erb",
     $template_variables = {},
     $hour               = undef,
@@ -63,7 +64,12 @@
         default => "--libjars ${libjars}",
     }
 
-    $command = "${script} --job-name camus-${title} ${libjars_opt} 
${properties_file} >> ${log_file} 2>&1"
+    $check_run_opt = $check_run ? {
+        undef   => '',
+        default => "--check",
+    }
+
+    $command = "${script} --run --job-name camus-${title} ${libjars_opt} 
${check_run_opt} ${properties_file} >> ${log_file} 2>&1"
 
     cron { "camus-${title}":
         command  => $command,

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5db0f95859ca52ee2cf4f40ead88f68c66607e5a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Joal <[email protected]>

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

Reply via email to