{"action":"opened","issue":{"url":"https://api.github.com/repos/anticoders/gagarin/issues/85","labels_url":"https://api.github.com/repos/anticoders/gagarin/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/anticoders/gagarin/issues/85/comments","events_url":"https://api.github.com/repos/anticoders/gagarin/issues/85/events","html_url":"https://github.com/anticoders/gagarin/issues/85","id":55731857,"number":85,"title":"When we SIGINT the process databases are not removed","user":{"login":"apendua","id":1971195,"avatar_url":"https://avatars.githubusercontent.com/u/1971195?v=3","gravatar_id":"","url":"https://api.github.com/users/apendua","html_url":"https://github.com/apendua","followers_url":"https://api.github.com/users/apendua/followers","following_url":"https://api.github.com/users/apendua/following{/other_user}","gists_url":"https://api.github.com/users/apendua/gists{/gist_id}","starred_url":"https://api.github.com/users/apendua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apendua/subscriptions","organizations_url":"https://api.github.com/users/apendua/orgs","repos_url":"https://api.github.com/users/apendua/repos","events_url":"https://api.github.com/users/apendua/events{/privacy}","received_events_url":"https://api.github.com/users/apendua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/anticoders/gagarin/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/anticoders/gagarin/labels/documentation","name":"documentation","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T09:21:52Z","updated_at":"2015-01-28T09:21:52Z","closed_at":null,"body":"The test databases are not removed when we `SIGINT` the current process. Lets think about the best pattern to overcome this problem.\r\n\r\nBasically, the dilemma comes from the fact that we also need to teardown mongo processes but dropping database will only work before those processes are killed. On the other hand managing this type of synchronization when the process is about to exit is not an obvious task. So I was thinking that we could at least print some warning message to the user, telling them which files needs to be removed. "}}