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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/updateserver/manifests/init.pp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 lock_file="<%= sitescripts_var_dir %>/update_update_manifests.lock" 3 lock_file="<%= sitescripts_var_dir %>/update_update_manifests.lock"
4 timeout="<%= update_manifest_timeout %>"
4 5
5 exec 9>"$lock_file" 6 exec 9>"$lock_file"
6 flock -n 9 || exit 0 7 flock -n 9 || exit 0
7 8
8 <% repositories_to_sync.each do |repository| %> 9 <% repositories_to_sync.each do |repository| %>
9 hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>" 10 timeout "$timeout" hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>"
10 <% end %> 11 <% end %>
11 12
12 export PYTHONPATH=/opt/sitescripts 13 export PYTHONPATH=/opt/sitescripts
13 python -m sitescripts.extensions.bin.updateUpdateManifests 14 python -m sitescripts.extensions.bin.updateUpdateManifests
14 15
15 rm -f "$lock_file" 16 rm -f "$lock_file"
OLDNEW
« 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