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

Unified Diff: modules/updateserver/templates/update_update_manifests.erb

Issue 4734126921875456: Issue 1763 - Extend update_update_manifests by timeouts (Closed)
Patch Set: Created Jan. 7, 2015, 9:17 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 | « modules/updateserver/manifests/init.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/updateserver/templates/update_update_manifests.erb
===================================================================
--- a/modules/updateserver/templates/update_update_manifests.erb
+++ b/modules/updateserver/templates/update_update_manifests.erb
@@ -1,12 +1,13 @@
#!/bin/bash
lock_file="<%= sitescripts_var_dir %>/update_update_manifests.lock"
+timeout="<%= update_manifest_timeout %>"
exec 9>"$lock_file"
flock -n 9 || exit 0
<% repositories_to_sync.each do |repository| %>
-hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>"
+timeout "$timeout" hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>"
<% end %>
export PYTHONPATH=/opt/sitescripts
« no previous file with comments | « modules/updateserver/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld