Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/sitescripts/manifests/init.pp

Issue 11588011: Spread out sitescript pulls to avoid hgweb bug (Closed)
Patch Set: Created Sept. 3, 2013, 1:01 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/sitescripts/manifests/init.pp
===================================================================
--- a/modules/sitescripts/manifests/init.pp
+++ b/modules/sitescripts/manifests/init.pp
@@ -27,7 +27,9 @@
cron {"update_sitescripts":
ensure => present,
- command => "hg pull -q -u -R /opt/sitescripts",
+ # We spread out the pulls a little to avoid the following bug in hgweb:
+ # http://bz.selenic.com/show_bug.cgi?id=3953
+ command => "bash -c 'sleep $((RANDOM \% 20))'; hg pull -q -u -R /opt/sitescripts",
environment => ['MAILTO=admins@adblockplus.org,root'],
user => root,
require => Exec["fetch_sitescripts"],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld