{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3651","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3651/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3651/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3651/events","html_url":"https://github.com/celery/celery/issues/3651","id":193466698,"number":3651,"title":"Specifying app/backend in GroupResult.restore is slightly awkward","user":{"login":"pelme","id":20529,"avatar_url":"https://avatars.githubusercontent.com/u/20529?v=3","gravatar_id":"","url":"https://api.github.com/users/pelme","html_url":"https://github.com/pelme","followers_url":"https://api.github.com/users/pelme/followers","following_url":"https://api.github.com/users/pelme/following{/other_user}","gists_url":"https://api.github.com/users/pelme/gists{/gist_id}","starred_url":"https://api.github.com/users/pelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelme/subscriptions","organizations_url":"https://api.github.com/users/pelme/orgs","repos_url":"https://api.github.com/users/pelme/repos","events_url":"https://api.github.com/users/pelme/events{/privacy}","received_events_url":"https://api.github.com/users/pelme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T10:57:07Z","updated_at":"2016-12-08T16:45:04Z","closed_at":null,"body":"In Celery 3.x I used `GroupResult.restore('some-id')` and it somehow found my app and figured out the backend (not sure how, but it worked).\r\n\r\nIn Celery 4.x this does not work (it does not find the backend and crashes). That makes sense to me (I like the idea of explicit apps a lot!). `GroupResult.restore()` does not accept a `app` argument which would be convenient. It does however support a `backend` argument, so I changed my code to use `GroupResult.restore('my-id', backend=app.backend)` and everything is fine.\r\n\r\nHowever, to me this is not that super-intuitive, my suggestion is that we should add an `app` kwarg to `restore()` that can be used like:\r\n\r\n```py\r\nGroupResult.restore('someid', app=app)\r\n```\r\n\r\nDo you think this makes sense? Then I'd be happy to work on a PR to add the argument!"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/265789210","html_url":"https://github.com/celery/celery/issues/3651#issuecomment-265789210","issue_url":"https://api.github.com/repos/celery/celery/issues/3651","id":265789210,"user":{"login":"pelme","id":20529,"avatar_url":"https://avatars.githubusercontent.com/u/20529?v=3","gravatar_id":"","url":"https://api.github.com/users/pelme","html_url":"https://github.com/pelme","followers_url":"https://api.github.com/users/pelme/followers","following_url":"https://api.github.com/users/pelme/following{/other_user}","gists_url":"https://api.github.com/users/pelme/gists{/gist_id}","starred_url":"https://api.github.com/users/pelme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pelme/subscriptions","organizations_url":"https://api.github.com/users/pelme/orgs","repos_url":"https://api.github.com/users/pelme/repos","events_url":"https://api.github.com/users/pelme/events{/privacy}","received_events_url":"https://api.github.com/users/pelme/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T16:45:04Z","updated_at":"2016-12-08T16:45:04Z","body":"I was not aware, but GroupResult is also available on the app, another way to solve this is to use:\r\n```py\r\napp.GroupResult.restore('someid')\r\n```"}}
{"actor":{"display_login":"pelme"}}