diff options
author | Donald Stufft <donald@stufft.io> | 2013-07-25 00:22:54 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-07-25 00:22:54 -0400 |
commit | bef924c5061be577fcdd82b93a0a4c104f4efac4 (patch) | |
tree | 7311e818d33de85235d7a1a4256c64dde36fea6f | |
parent | edb52be7e3da1c9aa19a3b0ca3aa850491d2d4ba (diff) | |
download | decorator-bef924c5061be577fcdd82b93a0a4c104f4efac4.tar.gz |
Temporarily remove the status check
-rw-r--r-- | tasks.py | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -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 |