{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50","id":210791291,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNzkxMjkx","html_url":"https://github.com/alanjds/celery-serverless/pull/50","diff_url":"https://github.com/alanjds/celery-serverless/pull/50.diff","patch_url":"https://github.com/alanjds/celery-serverless/pull/50.patch","issue_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/50","number":50,"state":"open","locked":false,"title":"Fix hooks: Should be class-wide, not linking to instances","user":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"body":"`self` should not be bound to the hooks, as it runs for every worker. It should be bound to the `cls` if any.\r\n\r\nNote that the actual implementation does not work for multiple concurrent instances of `WorkerRunner`, as the `._current_runner` is shared.","created_at":"2018-08-24T16:38:39Z","updated_at":"2018-08-24T16:38:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50/commits","review_comments_url":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50/comments","review_comment_url":"https://api.github.com/repos/alanjds/celery-serverless/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/50/comments","statuses_url":"https://api.github.com/repos/alanjds/celery-serverless/statuses/b13635289a6e054829948d201ed5022051c4e4f0","head":{"label":"alanjds:fix-hooks","ref":"fix-hooks","sha":"b13635289a6e054829948d201ed5022051c4e4f0","user":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"repo":{"id":126877194,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NzcxOTQ=","name":"celery-serverless","full_name":"alanjds/celery-serverless","owner":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alanjds/celery-serverless","description":"AWS Lambda running a Celery worker. Should be compatible with Google Functions and friends via Serverless too.","fork":false,"url":"https://api.github.com/repos/alanjds/celery-serverless","forks_url":"https://api.github.com/repos/alanjds/celery-serverless/forks","keys_url":"https://api.github.com/repos/alanjds/celery-serverless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alanjds/celery-serverless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alanjds/celery-serverless/teams","hooks_url":"https://api.github.com/repos/alanjds/celery-serverless/hooks","issue_events_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/events{/number}","events_url":"https://api.github.com/repos/alanjds/celery-serverless/events","assignees_url":"https://api.github.com/repos/alanjds/celery-serverless/assignees{/user}","branches_url":"https://api.github.com/repos/alanjds/celery-serverless/branches{/branch}","tags_url":"https://api.github.com/repos/alanjds/celery-serverless/tags","blobs_url":"https://api.github.com/repos/alanjds/celery-serverless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alanjds/celery-serverless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alanjds/celery-serverless/git/refs{/sha}","trees_url":"https://api.github.com/repos/alanjds/celery-serverless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alanjds/celery-serverless/statuses/{sha}","languages_url":"https://api.github.com/repos/alanjds/celery-serverless/languages","stargazers_url":"https://api.github.com/repos/alanjds/celery-serverless/stargazers","contributors_url":"https://api.github.com/repos/alanjds/celery-serverless/contributors","subscribers_url":"https://api.github.com/repos/alanjds/celery-serverless/subscribers","subscription_url":"https://api.github.com/repos/alanjds/celery-serverless/subscription","commits_url":"https://api.github.com/repos/alanjds/celery-serverless/commits{/sha}","git_commits_url":"https://api.github.com/repos/alanjds/celery-serverless/git/commits{/sha}","comments_url":"https://api.github.com/repos/alanjds/celery-serverless/comments{/number}","issue_comment_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/comments{/number}","contents_url":"https://api.github.com/repos/alanjds/celery-serverless/contents/{+path}","compare_url":"https://api.github.com/repos/alanjds/celery-serverless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alanjds/celery-serverless/merges","archive_url":"https://api.github.com/repos/alanjds/celery-serverless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alanjds/celery-serverless/downloads","issues_url":"https://api.github.com/repos/alanjds/celery-serverless/issues{/number}","pulls_url":"https://api.github.com/repos/alanjds/celery-serverless/pulls{/number}","milestones_url":"https://api.github.com/repos/alanjds/celery-serverless/milestones{/number}","notifications_url":"https://api.github.com/repos/alanjds/celery-serverless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alanjds/celery-serverless/labels{/name}","releases_url":"https://api.github.com/repos/alanjds/celery-serverless/releases{/id}","deployments_url":"https://api.github.com/repos/alanjds/celery-serverless/deployments","created_at":"2018-03-26T19:08:27Z","updated_at":"2018-08-23T20:11:56Z","pushed_at":"2018-08-24T16:34:42Z","git_url":"git://github.com/alanjds/celery-serverless.git","ssh_url":"git@github.com:alanjds/celery-serverless.git","clone_url":"https://github.com/alanjds/celery-serverless.git","svn_url":"https://github.com/alanjds/celery-serverless","homepage":null,"size":249,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"base":{"label":"alanjds:master","ref":"master","sha":"ee756a683ee05e81660a1b4748bc44d0a296eada","user":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"repo":{"id":126877194,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NzcxOTQ=","name":"celery-serverless","full_name":"alanjds/celery-serverless","owner":{"login":"alanjds","id":155623,"node_id":"MDQ6VXNlcjE1NTYyMw==","avatar_url":"https://avatars3.githubusercontent.com/u/155623?v=4","gravatar_id":"","url":"https://api.github.com/users/alanjds","html_url":"https://github.com/alanjds","followers_url":"https://api.github.com/users/alanjds/followers","following_url":"https://api.github.com/users/alanjds/following{/other_user}","gists_url":"https://api.github.com/users/alanjds/gists{/gist_id}","starred_url":"https://api.github.com/users/alanjds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanjds/subscriptions","organizations_url":"https://api.github.com/users/alanjds/orgs","repos_url":"https://api.github.com/users/alanjds/repos","events_url":"https://api.github.com/users/alanjds/events{/privacy}","received_events_url":"https://api.github.com/users/alanjds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alanjds/celery-serverless","description":"AWS Lambda running a Celery worker. Should be compatible with Google Functions and friends via Serverless too.","fork":false,"url":"https://api.github.com/repos/alanjds/celery-serverless","forks_url":"https://api.github.com/repos/alanjds/celery-serverless/forks","keys_url":"https://api.github.com/repos/alanjds/celery-serverless/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alanjds/celery-serverless/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alanjds/celery-serverless/teams","hooks_url":"https://api.github.com/repos/alanjds/celery-serverless/hooks","issue_events_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/events{/number}","events_url":"https://api.github.com/repos/alanjds/celery-serverless/events","assignees_url":"https://api.github.com/repos/alanjds/celery-serverless/assignees{/user}","branches_url":"https://api.github.com/repos/alanjds/celery-serverless/branches{/branch}","tags_url":"https://api.github.com/repos/alanjds/celery-serverless/tags","blobs_url":"https://api.github.com/repos/alanjds/celery-serverless/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alanjds/celery-serverless/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alanjds/celery-serverless/git/refs{/sha}","trees_url":"https://api.github.com/repos/alanjds/celery-serverless/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alanjds/celery-serverless/statuses/{sha}","languages_url":"https://api.github.com/repos/alanjds/celery-serverless/languages","stargazers_url":"https://api.github.com/repos/alanjds/celery-serverless/stargazers","contributors_url":"https://api.github.com/repos/alanjds/celery-serverless/contributors","subscribers_url":"https://api.github.com/repos/alanjds/celery-serverless/subscribers","subscription_url":"https://api.github.com/repos/alanjds/celery-serverless/subscription","commits_url":"https://api.github.com/repos/alanjds/celery-serverless/commits{/sha}","git_commits_url":"https://api.github.com/repos/alanjds/celery-serverless/git/commits{/sha}","comments_url":"https://api.github.com/repos/alanjds/celery-serverless/comments{/number}","issue_comment_url":"https://api.github.com/repos/alanjds/celery-serverless/issues/comments{/number}","contents_url":"https://api.github.com/repos/alanjds/celery-serverless/contents/{+path}","compare_url":"https://api.github.com/repos/alanjds/celery-serverless/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alanjds/celery-serverless/merges","archive_url":"https://api.github.com/repos/alanjds/celery-serverless/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alanjds/celery-serverless/downloads","issues_url":"https://api.github.com/repos/alanjds/celery-serverless/issues{/number}","pulls_url":"https://api.github.com/repos/alanjds/celery-serverless/pulls{/number}","milestones_url":"https://api.github.com/repos/alanjds/celery-serverless/milestones{/number}","notifications_url":"https://api.github.com/repos/alanjds/celery-serverless/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alanjds/celery-serverless/labels{/name}","releases_url":"https://api.github.com/repos/alanjds/celery-serverless/releases{/id}","deployments_url":"https://api.github.com/repos/alanjds/celery-serverless/deployments","created_at":"2018-03-26T19:08:27Z","updated_at":"2018-08-23T20:11:56Z","pushed_at":"2018-08-24T16:34:42Z","git_url":"git://github.com/alanjds/celery-serverless.git","ssh_url":"git@github.com:alanjds/celery-serverless.git","clone_url":"https://github.com/alanjds/celery-serverless.git","svn_url":"https://github.com/alanjds/celery-serverless","homepage":null,"size":249,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50"},"html":{"href":"https://github.com/alanjds/celery-serverless/pull/50"},"issue":{"href":"https://api.github.com/repos/alanjds/celery-serverless/issues/50"},"comments":{"href":"https://api.github.com/repos/alanjds/celery-serverless/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/alanjds/celery-serverless/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alanjds/celery-serverless/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/alanjds/celery-serverless/statuses/b13635289a6e054829948d201ed5022051c4e4f0"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":15,"deletions":6,"changed_files":1}}
{"actor":{"display_login":"alanjds"}}