{"action":"created","issue":{"url":"https://api.github.com/repos/joblib/joblib/issues/335","repository_url":"https://api.github.com/repos/joblib/joblib","labels_url":"https://api.github.com/repos/joblib/joblib/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/joblib/joblib/issues/335/comments","events_url":"https://api.github.com/repos/joblib/joblib/issues/335/events","html_url":"https://github.com/joblib/joblib/issues/335","id":146863867,"number":335,"title":"joblib parallel_backend should call terminate instead of Parallel","user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars.githubusercontent.com/u/89061?v=3","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joblib/joblib/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T08:50:47Z","updated_at":"2016-04-08T15:48:26Z","closed_at":null,"body":"As reported in https://github.com/dask/distributed/pull/211#issuecomment-205570925, `Parallel.__call__` should not call `backend.terminate()` when the backend instance is externally managed via `parallel_backend`."},"comment":{"url":"https://api.github.com/repos/joblib/joblib/issues/comments/207489004","html_url":"https://github.com/joblib/joblib/issues/335#issuecomment-207489004","issue_url":"https://api.github.com/repos/joblib/joblib/issues/335","id":207489004,"user":{"login":"ogrisel","id":89061,"avatar_url":"https://avatars.githubusercontent.com/u/89061?v=3","gravatar_id":"","url":"https://api.github.com/users/ogrisel","html_url":"https://github.com/ogrisel","followers_url":"https://api.github.com/users/ogrisel/followers","following_url":"https://api.github.com/users/ogrisel/following{/other_user}","gists_url":"https://api.github.com/users/ogrisel/gists{/gist_id}","starred_url":"https://api.github.com/users/ogrisel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogrisel/subscriptions","organizations_url":"https://api.github.com/users/ogrisel/orgs","repos_url":"https://api.github.com/users/ogrisel/repos","events_url":"https://api.github.com/users/ogrisel/events{/privacy}","received_events_url":"https://api.github.com/users/ogrisel/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T15:48:26Z","updated_at":"2016-04-08T15:48:26Z","body":"I think there should be not cleanup when the instance of the backend is managed by the `parallel_backend` context manager.\r\n\r\nWhen Parallel.__call__ creates an instance of a backend outside of the scope of a context manager then it should also take care of the cleanup."}}