summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-07-25 00:22:54 -0400
committerDonald Stufft <donald@stufft.io>2013-07-25 00:22:54 -0400
commitbef924c5061be577fcdd82b93a0a4c104f4efac4 (patch)
tree7311e818d33de85235d7a1a4256c64dde36fea6f
parentedb52be7e3da1c9aa19a3b0ca3aa850491d2d4ba (diff)
downloaddecorator-bef924c5061be577fcdd82b93a0a4c104f4efac4.tar.gz
Temporarily remove the status check
-rw-r--r--tasks.py20
1 files 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