From bef924c5061be577fcdd82b93a0a4c104f4efac4 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Thu, 25 Jul 2013 00:22:54 -0400 Subject: Temporarily remove the status check --- tasks.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tasks.py b/tasks.py index 4ca2406..a2cfeda 100644 --- a/tasks.py +++ b/tasks.py @@ -26,16 +26,16 @@ def purge_fastly_tags(domain, api_key, service_id, tags, max_tries=25): # Store the Purge ID so we can track it later purges[tag] = resp.json()["id"] - for tag, purge_id in purges.iteritems(): - # Ensure that the purge completed successfully - url = urlparse.urljoin(domain, "/purge") - status = session.get(url, params={"id": purge_id}) - status.raise_for_status() - - # If the purge completely successfully remove the tag from - # our list. - if status.json().get("results", {}).get("complete", None): - all_tags.remove(tag) + # for tag, purge_id in purges.iteritems(): + # # Ensure that the purge completed successfully + # url = urlparse.urljoin(domain, "/purge") + # status = session.get(url, params={"id": purge_id}) + # status.raise_for_status() + + # # If the purge completely successfully remove the tag from + # # our list. + # if status.json().get("results", {}).get("complete", None): + # all_tags.remove(tag) except Exception: if count > max_tries: raise -- cgit v1.2.1