{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/comments/41772387","id":41772387,"diff_hunk":"@@ -8,6 +8,12 @@ def purge(*args):\n     for path in args:\n         run(\"curl -s -I -X PURGE http://localhost:7999%s | grep '200 Purged'\" % path.strip())\n \n+@task\n+@roles('class-cache', 'class-draft_cache')\n+def purge_all():\n+    \"Purge everything from varnish. This is done by restarting all varnish processes.\"\n+    restart()","path":"cache.py","position":8,"original_position":8,"commit_id":"d5ece6a95915a2948a692d3a3894cfcbcc7b4afb","original_commit_id":"d5ece6a95915a2948a692d3a3894cfcbcc7b4afb","user":{"login":"jamiecobbett","id":93739,"avatar_url":"https://avatars.githubusercontent.com/u/93739?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiecobbett","html_url":"https://github.com/jamiecobbett","followers_url":"https://api.github.com/users/jamiecobbett/followers","following_url":"https://api.github.com/users/jamiecobbett/following{/other_user}","gists_url":"https://api.github.com/users/jamiecobbett/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiecobbett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiecobbett/subscriptions","organizations_url":"https://api.github.com/users/jamiecobbett/orgs","repos_url":"https://api.github.com/users/jamiecobbett/repos","events_url":"https://api.github.com/users/jamiecobbett/events{/privacy}","received_events_url":"https://api.github.com/users/jamiecobbett/received_events","type":"User","site_admin":false},"body":"I agree. I have a memory that @rjw1 has done it before?\r\n\r\nI suppose if we think it is risky enough, we could stagger the restarts? There are currently 3 cache machines, plus 2 draft cache machines.","created_at":"2015-10-12T16:05:30Z","updated_at":"2015-10-12T16:05:30Z","html_url":"https://github.com/alphagov/fabric-scripts/pull/173#discussion_r41772387","pull_request_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173","_links":{"self":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/comments/41772387"},"html":{"href":"https://github.com/alphagov/fabric-scripts/pull/173#discussion_r41772387"},"pull_request":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173","id":47268493,"html_url":"https://github.com/alphagov/fabric-scripts/pull/173","diff_url":"https://github.com/alphagov/fabric-scripts/pull/173.diff","patch_url":"https://github.com/alphagov/fabric-scripts/pull/173.patch","issue_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/173","number":173,"state":"open","locked":false,"title":"Improvements for emergency publishing","user":{"login":"jamiecobbett","id":93739,"avatar_url":"https://avatars.githubusercontent.com/u/93739?v=3","gravatar_id":"","url":"https://api.github.com/users/jamiecobbett","html_url":"https://github.com/jamiecobbett","followers_url":"https://api.github.com/users/jamiecobbett/followers","following_url":"https://api.github.com/users/jamiecobbett/following{/other_user}","gists_url":"https://api.github.com/users/jamiecobbett/gists{/gist_id}","starred_url":"https://api.github.com/users/jamiecobbett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamiecobbett/subscriptions","organizations_url":"https://api.github.com/users/jamiecobbett/orgs","repos_url":"https://api.github.com/users/jamiecobbett/repos","events_url":"https://api.github.com/users/jamiecobbett/events{/privacy}","received_events_url":"https://api.github.com/users/jamiecobbett/received_events","type":"User","site_admin":false},"body":"Following an emergency publishing drill, we found some things which need improving.","created_at":"2015-10-09T12:59:19Z","updated_at":"2015-10-12T16:05:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5d11e1f1c24abf82a78fc546cb2fe7f92454760","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173/commits","review_comments_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173/comments","review_comment_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/173/comments","statuses_url":"https://api.github.com/repos/alphagov/fabric-scripts/statuses/d5ece6a95915a2948a692d3a3894cfcbcc7b4afb","head":{"label":"alphagov:improvements_for_emergency_publishing","ref":"improvements_for_emergency_publishing","sha":"d5ece6a95915a2948a692d3a3894cfcbcc7b4afb","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":6192954,"name":"fabric-scripts","full_name":"alphagov/fabric-scripts","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/fabric-scripts","description":"GOV.UK Fabric scripts","fork":false,"url":"https://api.github.com/repos/alphagov/fabric-scripts","forks_url":"https://api.github.com/repos/alphagov/fabric-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/fabric-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/fabric-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/fabric-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/fabric-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/fabric-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/fabric-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/fabric-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/fabric-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/fabric-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/fabric-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/fabric-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/fabric-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/fabric-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/fabric-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/fabric-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/fabric-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/fabric-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/fabric-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/fabric-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/fabric-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/fabric-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/fabric-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/fabric-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/fabric-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/fabric-scripts/releases{/id}","created_at":"2012-10-12T16:23:34Z","updated_at":"2015-09-27T20:51:46Z","pushed_at":"2015-10-12T14:34:35Z","git_url":"git://github.com/alphagov/fabric-scripts.git","ssh_url":"git@github.com:alphagov/fabric-scripts.git","clone_url":"https://github.com/alphagov/fabric-scripts.git","svn_url":"https://github.com/alphagov/fabric-scripts","homepage":null,"size":1775,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":25,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"85bfc354d83d8f37a92dd588771e6a3fd1677906","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":6192954,"name":"fabric-scripts","full_name":"alphagov/fabric-scripts","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/fabric-scripts","description":"GOV.UK Fabric scripts","fork":false,"url":"https://api.github.com/repos/alphagov/fabric-scripts","forks_url":"https://api.github.com/repos/alphagov/fabric-scripts/forks","keys_url":"https://api.github.com/repos/alphagov/fabric-scripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/fabric-scripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/fabric-scripts/teams","hooks_url":"https://api.github.com/repos/alphagov/fabric-scripts/hooks","issue_events_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/fabric-scripts/events","assignees_url":"https://api.github.com/repos/alphagov/fabric-scripts/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/fabric-scripts/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/fabric-scripts/tags","blobs_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/fabric-scripts/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/fabric-scripts/languages","stargazers_url":"https://api.github.com/repos/alphagov/fabric-scripts/stargazers","contributors_url":"https://api.github.com/repos/alphagov/fabric-scripts/contributors","subscribers_url":"https://api.github.com/repos/alphagov/fabric-scripts/subscribers","subscription_url":"https://api.github.com/repos/alphagov/fabric-scripts/subscription","commits_url":"https://api.github.com/repos/alphagov/fabric-scripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/fabric-scripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/fabric-scripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/fabric-scripts/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/fabric-scripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/fabric-scripts/merges","archive_url":"https://api.github.com/repos/alphagov/fabric-scripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/fabric-scripts/downloads","issues_url":"https://api.github.com/repos/alphagov/fabric-scripts/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/fabric-scripts/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/fabric-scripts/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/fabric-scripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/fabric-scripts/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/fabric-scripts/releases{/id}","created_at":"2012-10-12T16:23:34Z","updated_at":"2015-09-27T20:51:46Z","pushed_at":"2015-10-12T14:34:35Z","git_url":"git://github.com/alphagov/fabric-scripts.git","ssh_url":"git@github.com:alphagov/fabric-scripts.git","clone_url":"https://github.com/alphagov/fabric-scripts.git","svn_url":"https://github.com/alphagov/fabric-scripts","homepage":null,"size":1775,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173"},"html":{"href":"https://github.com/alphagov/fabric-scripts/pull/173"},"issue":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/issues/173"},"comments":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/fabric-scripts/statuses/d5ece6a95915a2948a692d3a3894cfcbcc7b4afb"}}}}