diff --git a/lib/ammoprices/scraping/scrape_job.ex b/lib/ammoprices/scraping/scrape_job.ex index ed1cafc..88b965a 100644 --- a/lib/ammoprices/scraping/scrape_job.ex +++ b/lib/ammoprices/scraping/scrape_job.ex @@ -29,9 +29,9 @@ defmodule Ammoprices.Scraping.ScrapeJob do :ok end - # Random delay between requests: 5-15 seconds in prod, 0 in test + # Random delay between requests: 5-15 minutes in prod, 0 in test defp scrape_delay do - {min, max} = Application.get_env(:ammoprices, :scrape_delay_ms, {5_000, 15_000}) + {min, max} = Application.get_env(:ammoprices, :scrape_delay_ms, {300_000, 900_000}) delay = Enum.random(min..max) if delay > 0 do