{"action":"created","issue":{"url":"https://api.github.com/repos/joblib/joblib/issues/181","labels_url":"https://api.github.com/repos/joblib/joblib/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/joblib/joblib/issues/181/comments","events_url":"https://api.github.com/repos/joblib/joblib/issues/181/events","html_url":"https://github.com/joblib/joblib/issues/181","id":55241627,"number":181,"title":" joblib: gracefully handle KeyboardInterrupt","user":{"login":"amueller","id":449558,"avatar_url":"https://avatars.githubusercontent.com/u/449558?v=3","gravatar_id":"","url":"https://api.github.com/users/amueller","html_url":"https://github.com/amueller","followers_url":"https://api.github.com/users/amueller/followers","following_url":"https://api.github.com/users/amueller/following{/other_user}","gists_url":"https://api.github.com/users/amueller/gists{/gist_id}","starred_url":"https://api.github.com/users/amueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amueller/subscriptions","organizations_url":"https://api.github.com/users/amueller/orgs","repos_url":"https://api.github.com/users/amueller/repos","events_url":"https://api.github.com/users/amueller/events{/privacy}","received_events_url":"https://api.github.com/users/amueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-23T03:41:16Z","updated_at":"2015-10-26T15:13:12Z","closed_at":null,"body":"From https://github.com/scikit-learn/scikit-learn/issues/2913\r\n\r\nIt would be nice if I could easily abort something like a grid search with a KeyboardInterrupt. Currently joblib seems to require holding down Ctrl-C until all PoolWorkers are killed off."},"comment":{"url":"https://api.github.com/repos/joblib/joblib/issues/comments/151169241","html_url":"https://github.com/joblib/joblib/issues/181#issuecomment-151169241","issue_url":"https://api.github.com/repos/joblib/joblib/issues/181","id":151169241,"user":{"login":"GaelVaroquaux","id":208217,"avatar_url":"https://avatars.githubusercontent.com/u/208217?v=3","gravatar_id":"","url":"https://api.github.com/users/GaelVaroquaux","html_url":"https://github.com/GaelVaroquaux","followers_url":"https://api.github.com/users/GaelVaroquaux/followers","following_url":"https://api.github.com/users/GaelVaroquaux/following{/other_user}","gists_url":"https://api.github.com/users/GaelVaroquaux/gists{/gist_id}","starred_url":"https://api.github.com/users/GaelVaroquaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaelVaroquaux/subscriptions","organizations_url":"https://api.github.com/users/GaelVaroquaux/orgs","repos_url":"https://api.github.com/users/GaelVaroquaux/repos","events_url":"https://api.github.com/users/GaelVaroquaux/events{/privacy}","received_events_url":"https://api.github.com/users/GaelVaroquaux/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T15:13:12Z","updated_at":"2015-10-26T15:13:12Z","body":"I have been thinking about this problem. \r\n\r\nMaybe it can be fixed by special casing the KeyboardInterrupt in the part of the code that retrieves the results to kill the pool immediately. "}}