{"action":"created","issue":{"url":"https://api.github.com/repos/celery/celery/issues/3329","repository_url":"https://api.github.com/repos/celery/celery","labels_url":"https://api.github.com/repos/celery/celery/issues/3329/labels{/name}","comments_url":"https://api.github.com/repos/celery/celery/issues/3329/comments","events_url":"https://api.github.com/repos/celery/celery/issues/3329/events","html_url":"https://github.com/celery/celery/issues/3329","id":166524741,"number":3329,"title":"Task.replace() does not return results when CELERY_ALWAYS_EAGER = True","user":{"login":"bruno-rino","id":3995711,"avatar_url":"https://avatars.githubusercontent.com/u/3995711?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-rino","html_url":"https://github.com/bruno-rino","followers_url":"https://api.github.com/users/bruno-rino/followers","following_url":"https://api.github.com/users/bruno-rino/following{/other_user}","gists_url":"https://api.github.com/users/bruno-rino/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-rino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-rino/subscriptions","organizations_url":"https://api.github.com/users/bruno-rino/orgs","repos_url":"https://api.github.com/users/bruno-rino/repos","events_url":"https://api.github.com/users/bruno-rino/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-rino/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/celery/celery/labels/Component:%20Eager%20mode","name":"Component: Eager mode","color":"006b75"},{"url":"https://api.github.com/repos/celery/celery/labels/Issue%20Type:%20Enhancement","name":"Issue Type: Enhancement","color":"ededed"},{"url":"https://api.github.com/repos/celery/celery/labels/Version:%204.0","name":"Version: 4.0","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/celery/celery/milestones/17","html_url":"https://github.com/celery/celery/milestones/v4.0","labels_url":"https://api.github.com/repos/celery/celery/milestones/17/labels","id":308346,"number":17,"title":"v4.0","description":"","creator":{"login":"ask","id":1558,"avatar_url":"https://avatars.githubusercontent.com/u/1558?v=3","gravatar_id":"","url":"https://api.github.com/users/ask","html_url":"https://github.com/ask","followers_url":"https://api.github.com/users/ask/followers","following_url":"https://api.github.com/users/ask/following{/other_user}","gists_url":"https://api.github.com/users/ask/gists{/gist_id}","starred_url":"https://api.github.com/users/ask/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ask/subscriptions","organizations_url":"https://api.github.com/users/ask/orgs","repos_url":"https://api.github.com/users/ask/repos","events_url":"https://api.github.com/users/ask/events{/privacy}","received_events_url":"https://api.github.com/users/ask/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":37,"state":"open","created_at":"2013-04-11T10:46:42Z","updated_at":"2016-07-20T18:02:22Z","due_on":"2014-04-04T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-07-20T08:21:24Z","updated_at":"2016-07-22T09:04:09Z","closed_at":null,"body":"When CELERY_ALWAYS_EAGER = True, tasks are executed as expected, but the return value is missing. As a test, see this sample code adapted from #817:\r\n\r\n```python\r\nfrom celery import Celery\r\n\r\napp = Celery('hello')\r\napp.conf.CELERY_ALWAYS_EAGER = True\r\n\r\n@app.task(bind=True)\r\ndef hello(self):\r\n    print('hello...')\r\n    raise self.replace(goodbye.s())\r\n    print('world')\r\n\r\n@app.task\r\ndef goodbye():\r\n    print('later...')\r\n    return 'good bye!'\r\n\r\nif __name__ == '__main__':\r\n    mytasks = hello.s()\r\n    result = mytasks.apply_async()\r\n    print(result.get())\r\n```\r\n\r\nWhen run, 'hello...' and 'later...' are printed, but result.get() returns None\r\n"},"comment":{"url":"https://api.github.com/repos/celery/celery/issues/comments/234492720","html_url":"https://github.com/celery/celery/issues/3329#issuecomment-234492720","issue_url":"https://api.github.com/repos/celery/celery/issues/3329","id":234492720,"user":{"login":"bruno-rino","id":3995711,"avatar_url":"https://avatars.githubusercontent.com/u/3995711?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-rino","html_url":"https://github.com/bruno-rino","followers_url":"https://api.github.com/users/bruno-rino/followers","following_url":"https://api.github.com/users/bruno-rino/following{/other_user}","gists_url":"https://api.github.com/users/bruno-rino/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-rino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-rino/subscriptions","organizations_url":"https://api.github.com/users/bruno-rino/orgs","repos_url":"https://api.github.com/users/bruno-rino/repos","events_url":"https://api.github.com/users/bruno-rino/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-rino/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T09:04:09Z","updated_at":"2016-07-22T09:04:09Z","body":"I use CELERY_ALWAYS_EAGER to run smaller jobs locally. It is not testing. It is an important mode of operation.\r\n\r\nI'll look into other options to have my results trickle down."}}
{"actor":{"display_login":"bruno-rino"}}