{"action":"created","issue":{"url":"https://api.github.com/repos/convox/kernel/issues/98","labels_url":"https://api.github.com/repos/convox/kernel/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/convox/kernel/issues/98/comments","events_url":"https://api.github.com/repos/convox/kernel/issues/98/events","html_url":"https://github.com/convox/kernel/issues/98","id":98684438,"number":98,"title":"lag deleting an app","user":{"login":"rjocoleman","id":154176,"avatar_url":"https://avatars.githubusercontent.com/u/154176?v=3","gravatar_id":"","url":"https://api.github.com/users/rjocoleman","html_url":"https://github.com/rjocoleman","followers_url":"https://api.github.com/users/rjocoleman/followers","following_url":"https://api.github.com/users/rjocoleman/following{/other_user}","gists_url":"https://api.github.com/users/rjocoleman/gists{/gist_id}","starred_url":"https://api.github.com/users/rjocoleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjocoleman/subscriptions","organizations_url":"https://api.github.com/users/rjocoleman/orgs","repos_url":"https://api.github.com/users/rjocoleman/repos","events_url":"https://api.github.com/users/rjocoleman/events{/privacy}","received_events_url":"https://api.github.com/users/rjocoleman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T06:59:01Z","updated_at":"2015-08-04T03:14:45Z","closed_at":null,"body":"In my cluster there's a ~3min lag deleting an app.\r\n\r\nhttps://github.com/convox/kernel/blob/master/models/app.go#L169\r\n\r\nDuring that time Cloudformation is destroying the stack but the CLI has led me to believe it's all done:\r\n\r\n```shell\r\n$ convox apps delete test-convox\r\nDeleting test-convox... OK\r\n\r\n$ convox apps create\r\nCreating app test-convox... ERROR: There is already an app named test-convox\r\n```\r\n\r\nThis is only an issue if you're reusing the app name straight away, which is conceivable especially when testing or new.\r\n\r\nUsers probably don't care to watch the actual teardown of an app, so waiting for output is probably not a thing (ala cluster uninstaller).\r\n\r\nThis could be mitigated somewhat by changing the confirmation message to something like `DELETE QUEUED` and then on create checking to see the state of the existing app `ERROR: There is already an app named test-convox (currently deleting)` or so\r\n"},"comment":{"url":"https://api.github.com/repos/convox/kernel/issues/comments/127462953","html_url":"https://github.com/convox/kernel/issues/98#issuecomment-127462953","issue_url":"https://api.github.com/repos/convox/kernel/issues/98","id":127462953,"user":{"login":"ddollar","id":3308,"avatar_url":"https://avatars.githubusercontent.com/u/3308?v=3","gravatar_id":"","url":"https://api.github.com/users/ddollar","html_url":"https://github.com/ddollar","followers_url":"https://api.github.com/users/ddollar/followers","following_url":"https://api.github.com/users/ddollar/following{/other_user}","gists_url":"https://api.github.com/users/ddollar/gists{/gist_id}","starred_url":"https://api.github.com/users/ddollar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddollar/subscriptions","organizations_url":"https://api.github.com/users/ddollar/orgs","repos_url":"https://api.github.com/users/ddollar/repos","events_url":"https://api.github.com/users/ddollar/events{/privacy}","received_events_url":"https://api.github.com/users/ddollar/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T03:14:45Z","updated_at":"2015-08-04T03:14:45Z","body":"I'm hesitant to add this special case right now simply because it doesn't seem like something people should be doing very often. If you delete and recreate an app you have to pay all of the penalties waiting for a load balancer again so it's not the greatest idea to make part of your workflow.\r\n\r\nWhat's the use case for deleting/recreating an app?"}}