From: Tom Hughes Date: Wed, 30 Nov 2016 08:45:43 +0000 (+0000) Subject: Remove block on scale 3600 X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/39916b97143cf3c1730607f735e43f4f27ef7a52?ds=sidebyside Remove block on scale 3600 --- diff --git a/cookbooks/tile/templates/default/export.erb b/cookbooks/tile/templates/default/export.erb index 5e4b97414..c05083835 100644 --- a/cookbooks/tile/templates/default/export.erb +++ b/cookbooks/tile/templates/default/export.erb @@ -70,9 +70,6 @@ idletime = cputimes[3] / sum(cputimes) if idletime < 0.2: # Abort if the CPU idle time on the machine is too low output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable") -elif form.getvalue("scale") == "3600": - # Block scraper - output_error("The server is too busy at the moment. Please wait a few minutes before trying again.", "503 Service Unavailable") <% @blocks["user_agents"].each do |user_agent| -%> elif os.environ['HTTP_USER_AGENT'] == '<%= user_agent %>': # Block scraper