{"action":"closed","number":3907,"pull_request":{"url":"https://api.github.com/repos/celery/celery/pulls/3907","id":110428156,"html_url":"https://github.com/celery/celery/pull/3907","diff_url":"https://github.com/celery/celery/pull/3907.diff","patch_url":"https://github.com/celery/celery/pull/3907.patch","issue_url":"https://api.github.com/repos/celery/celery/issues/3907","number":3907,"state":"closed","locked":false,"title":"Failling with KeyError if inner chord consists of one task (Fixes #3885)","user":{"login":"robpogorzelski","id":1327303,"avatar_url":"https://avatars1.githubusercontent.com/u/1327303?v=3","gravatar_id":"","url":"https://api.github.com/users/robpogorzelski","html_url":"https://github.com/robpogorzelski","followers_url":"https://api.github.com/users/robpogorzelski/followers","following_url":"https://api.github.com/users/robpogorzelski/following{/other_user}","gists_url":"https://api.github.com/users/robpogorzelski/gists{/gist_id}","starred_url":"https://api.github.com/users/robpogorzelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpogorzelski/subscriptions","organizations_url":"https://api.github.com/users/robpogorzelski/orgs","repos_url":"https://api.github.com/users/robpogorzelski/repos","events_url":"https://api.github.com/users/robpogorzelski/events{/privacy}","received_events_url":"https://api.github.com/users/robpogorzelski/received_events","type":"User","site_admin":false},"body":"Tests passing for py.test/develop. I hope the purpose of this change is clear. For example, in the following scenario:\r\n```\r\n    chained = []\r\n    for source in sources:\r\n        tasks, callback = source.process()\r\n        if tasks:\r\n            chained.append(chord(tasks, callback))\r\n    chain(*chained)()\r\n```\r\nworker would exit with KeyError due to (celery/canvas.py):\r\n```\r\n        if len(self.tasks) == 1:\r\n            # chord([A], B) can be optimized as A | B\r\n            # - Issue #3323\r\n            return (self.tasks[0] | body).set(task_id=task_id).apply_async(\r\n                args, kwargs, **options)\r\n        # chord([A, B, ...], C)\r\n        return self.run(tasks, body, args, task_id=task_id, **options)\r\n```","created_at":"2017-03-13T15:21:54Z","updated_at":"2017-03-14T19:52:00Z","closed_at":"2017-03-14T19:52:00Z","merged_at":null,"merge_commit_sha":"32c86b0c6b788e4e673bf8d385b63e26fde38380","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/celery/celery/pulls/3907/commits","review_comments_url":"https://api.github.com/repos/celery/celery/pulls/3907/comments","review_comment_url":"https://api.github.com/repos/celery/celery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/celery/celery/issues/3907/comments","statuses_url":"https://api.github.com/repos/celery/celery/statuses/eaa228a92541459835f83943b4f31470ab808ffa","head":{"label":"robpogorzelski:master","ref":"master","sha":"eaa228a92541459835f83943b4f31470ab808ffa","user":{"login":"robpogorzelski","id":1327303,"avatar_url":"https://avatars1.githubusercontent.com/u/1327303?v=3","gravatar_id":"","url":"https://api.github.com/users/robpogorzelski","html_url":"https://github.com/robpogorzelski","followers_url":"https://api.github.com/users/robpogorzelski/followers","following_url":"https://api.github.com/users/robpogorzelski/following{/other_user}","gists_url":"https://api.github.com/users/robpogorzelski/gists{/gist_id}","starred_url":"https://api.github.com/users/robpogorzelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpogorzelski/subscriptions","organizations_url":"https://api.github.com/users/robpogorzelski/orgs","repos_url":"https://api.github.com/users/robpogorzelski/repos","events_url":"https://api.github.com/users/robpogorzelski/events{/privacy}","received_events_url":"https://api.github.com/users/robpogorzelski/received_events","type":"User","site_admin":false},"repo":{"id":84838994,"name":"celery","full_name":"robpogorzelski/celery","owner":{"login":"robpogorzelski","id":1327303,"avatar_url":"https://avatars1.githubusercontent.com/u/1327303?v=3","gravatar_id":"","url":"https://api.github.com/users/robpogorzelski","html_url":"https://github.com/robpogorzelski","followers_url":"https://api.github.com/users/robpogorzelski/followers","following_url":"https://api.github.com/users/robpogorzelski/following{/other_user}","gists_url":"https://api.github.com/users/robpogorzelski/gists{/gist_id}","starred_url":"https://api.github.com/users/robpogorzelski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robpogorzelski/subscriptions","organizations_url":"https://api.github.com/users/robpogorzelski/orgs","repos_url":"https://api.github.com/users/robpogorzelski/repos","events_url":"https://api.github.com/users/robpogorzelski/events{/privacy}","received_events_url":"https://api.github.com/users/robpogorzelski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robpogorzelski/celery","description":"Distributed Task Queue (development branch)","fork":true,"url":"https://api.github.com/repos/robpogorzelski/celery","forks_url":"https://api.github.com/repos/robpogorzelski/celery/forks","keys_url":"https://api.github.com/repos/robpogorzelski/celery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robpogorzelski/celery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robpogorzelski/celery/teams","hooks_url":"https://api.github.com/repos/robpogorzelski/celery/hooks","issue_events_url":"https://api.github.com/repos/robpogorzelski/celery/issues/events{/number}","events_url":"https://api.github.com/repos/robpogorzelski/celery/events","assignees_url":"https://api.github.com/repos/robpogorzelski/celery/assignees{/user}","branches_url":"https://api.github.com/repos/robpogorzelski/celery/branches{/branch}","tags_url":"https://api.github.com/repos/robpogorzelski/celery/tags","blobs_url":"https://api.github.com/repos/robpogorzelski/celery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robpogorzelski/celery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robpogorzelski/celery/git/refs{/sha}","trees_url":"https://api.github.com/repos/robpogorzelski/celery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robpogorzelski/celery/statuses/{sha}","languages_url":"https://api.github.com/repos/robpogorzelski/celery/languages","stargazers_url":"https://api.github.com/repos/robpogorzelski/celery/stargazers","contributors_url":"https://api.github.com/repos/robpogorzelski/celery/contributors","subscribers_url":"https://api.github.com/repos/robpogorzelski/celery/subscribers","subscription_url":"https://api.github.com/repos/robpogorzelski/celery/subscription","commits_url":"https://api.github.com/repos/robpogorzelski/celery/commits{/sha}","git_commits_url":"https://api.github.com/repos/robpogorzelski/celery/git/commits{/sha}","comments_url":"https://api.github.com/repos/robpogorzelski/celery/comments{/number}","issue_comment_url":"https://api.github.com/repos/robpogorzelski/celery/issues/comments{/number}","contents_url":"https://api.github.com/repos/robpogorzelski/celery/contents/{+path}","compare_url":"https://api.github.com/repos/robpogorzelski/celery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robpogorzelski/celery/merges","archive_url":"https://api.github.com/repos/robpogorzelski/celery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robpogorzelski/celery/downloads","issues_url":"https://api.github.com/repos/robpogorzelski/celery/issues{/number}","pulls_url":"https://api.github.com/repos/robpogorzelski/celery/pulls{/number}","milestones_url":"https://api.github.com/repos/robpogorzelski/celery/milestones{/number}","notifications_url":"https://api.github.com/repos/robpogorzelski/celery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robpogorzelski/celery/labels{/name}","releases_url":"https://api.github.com/repos/robpogorzelski/celery/releases{/id}","deployments_url":"https://api.github.com/repos/robpogorzelski/celery/deployments","created_at":"2017-03-13T14:54:41Z","updated_at":"2017-03-13T14:54:47Z","pushed_at":"2017-03-13T15:19:18Z","git_url":"git://github.com/robpogorzelski/celery.git","ssh_url":"git@github.com:robpogorzelski/celery.git","clone_url":"https://github.com/robpogorzelski/celery.git","svn_url":"https://github.com/robpogorzelski/celery","homepage":"http://celeryproject.org","size":45416,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"celery:master","ref":"master","sha":"144f88b4e1be21780e737d4be5a734b19f1cf511","user":{"login":"celery","id":319983,"avatar_url":"https://avatars1.githubusercontent.com/u/319983?v=3","gravatar_id":"","url":"https://api.github.com/users/celery","html_url":"https://github.com/celery","followers_url":"https://api.github.com/users/celery/followers","following_url":"https://api.github.com/users/celery/following{/other_user}","gists_url":"https://api.github.com/users/celery/gists{/gist_id}","starred_url":"https://api.github.com/users/celery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celery/subscriptions","organizations_url":"https://api.github.com/users/celery/orgs","repos_url":"https://api.github.com/users/celery/repos","events_url":"https://api.github.com/users/celery/events{/privacy}","received_events_url":"https://api.github.com/users/celery/received_events","type":"Organization","site_admin":false},"repo":{"id":184460,"name":"celery","full_name":"celery/celery","owner":{"login":"celery","id":319983,"avatar_url":"https://avatars1.githubusercontent.com/u/319983?v=3","gravatar_id":"","url":"https://api.github.com/users/celery","html_url":"https://github.com/celery","followers_url":"https://api.github.com/users/celery/followers","following_url":"https://api.github.com/users/celery/following{/other_user}","gists_url":"https://api.github.com/users/celery/gists{/gist_id}","starred_url":"https://api.github.com/users/celery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celery/subscriptions","organizations_url":"https://api.github.com/users/celery/orgs","repos_url":"https://api.github.com/users/celery/repos","events_url":"https://api.github.com/users/celery/events{/privacy}","received_events_url":"https://api.github.com/users/celery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/celery/celery","description":"Distributed Task Queue (development branch)","fork":false,"url":"https://api.github.com/repos/celery/celery","forks_url":"https://api.github.com/repos/celery/celery/forks","keys_url":"https://api.github.com/repos/celery/celery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celery/celery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celery/celery/teams","hooks_url":"https://api.github.com/repos/celery/celery/hooks","issue_events_url":"https://api.github.com/repos/celery/celery/issues/events{/number}","events_url":"https://api.github.com/repos/celery/celery/events","assignees_url":"https://api.github.com/repos/celery/celery/assignees{/user}","branches_url":"https://api.github.com/repos/celery/celery/branches{/branch}","tags_url":"https://api.github.com/repos/celery/celery/tags","blobs_url":"https://api.github.com/repos/celery/celery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celery/celery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celery/celery/git/refs{/sha}","trees_url":"https://api.github.com/repos/celery/celery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celery/celery/statuses/{sha}","languages_url":"https://api.github.com/repos/celery/celery/languages","stargazers_url":"https://api.github.com/repos/celery/celery/stargazers","contributors_url":"https://api.github.com/repos/celery/celery/contributors","subscribers_url":"https://api.github.com/repos/celery/celery/subscribers","subscription_url":"https://api.github.com/repos/celery/celery/subscription","commits_url":"https://api.github.com/repos/celery/celery/commits{/sha}","git_commits_url":"https://api.github.com/repos/celery/celery/git/commits{/sha}","comments_url":"https://api.github.com/repos/celery/celery/comments{/number}","issue_comment_url":"https://api.github.com/repos/celery/celery/issues/comments{/number}","contents_url":"https://api.github.com/repos/celery/celery/contents/{+path}","compare_url":"https://api.github.com/repos/celery/celery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celery/celery/merges","archive_url":"https://api.github.com/repos/celery/celery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celery/celery/downloads","issues_url":"https://api.github.com/repos/celery/celery/issues{/number}","pulls_url":"https://api.github.com/repos/celery/celery/pulls{/number}","milestones_url":"https://api.github.com/repos/celery/celery/milestones{/number}","notifications_url":"https://api.github.com/repos/celery/celery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celery/celery/labels{/name}","releases_url":"https://api.github.com/repos/celery/celery/releases{/id}","deployments_url":"https://api.github.com/repos/celery/celery/deployments","created_at":"2009-04-24T11:31:24Z","updated_at":"2017-03-14T19:41:59Z","pushed_at":"2017-03-14T10:43:17Z","git_url":"git://github.com/celery/celery.git","ssh_url":"git@github.com:celery/celery.git","clone_url":"https://github.com/celery/celery.git","svn_url":"https://github.com/celery/celery","homepage":"http://celeryproject.org","size":45420,"stargazers_count":6381,"watchers_count":6381,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2017,"mirror_url":null,"open_issues_count":339,"forks":2017,"open_issues":339,"watchers":6381,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/celery/celery/pulls/3907"},"html":{"href":"https://github.com/celery/celery/pull/3907"},"issue":{"href":"https://api.github.com/repos/celery/celery/issues/3907"},"comments":{"href":"https://api.github.com/repos/celery/celery/issues/3907/comments"},"review_comments":{"href":"https://api.github.com/repos/celery/celery/pulls/3907/comments"},"review_comment":{"href":"https://api.github.com/repos/celery/celery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/celery/celery/pulls/3907/commits"},"statuses":{"href":"https://api.github.com/repos/celery/celery/statuses/eaa228a92541459835f83943b4f31470ab808ffa"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":23,"deletions":1,"changed_files":3}}
{"actor":{"display_login":"robpogorzelski"}}