{"action":"closed","number":12,"pull_request":{"url":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12","id":29719540,"html_url":"https://github.com/TribeHR/cakephp_queue/pull/12","diff_url":"https://github.com/TribeHR/cakephp_queue/pull/12.diff","patch_url":"https://github.com/TribeHR/cakephp_queue/pull/12.patch","issue_url":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/12","number":12,"state":"closed","locked":false,"title":"[WEB-6233] Ensure parent Shell initialize is called to load models and tasks.","user":{"login":"KoryHodgson","id":1634903,"avatar_url":"https://avatars.githubusercontent.com/u/1634903?v=3","gravatar_id":"","url":"https://api.github.com/users/KoryHodgson","html_url":"https://github.com/KoryHodgson","followers_url":"https://api.github.com/users/KoryHodgson/followers","following_url":"https://api.github.com/users/KoryHodgson/following{/other_user}","gists_url":"https://api.github.com/users/KoryHodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/KoryHodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoryHodgson/subscriptions","organizations_url":"https://api.github.com/users/KoryHodgson/orgs","repos_url":"https://api.github.com/users/KoryHodgson/repos","events_url":"https://api.github.com/users/KoryHodgson/events{/privacy}","received_events_url":"https://api.github.com/users/KoryHodgson/received_events","type":"User","site_admin":false},"body":"Ensure parent Shell initialize is called to load models and tasks. A change was made in CakePHP > 2.0.1 (specific version unknown due to lack of caring), this moved loading of tasks into the Shell initialize method instead of ShellDispatcher::dispatch(). Since CakephpQueue overrides Shell::initialize and didn't call the parent method we no longer had tasks loaded and were unable to process any QueuedTasks.\r\n\r\nIn my debugging I had modified the QueuedTasks table and set workerkey to '' instead of NULL, this caused a crash in the queue, so I made this code a bit more robust.\r\n\r\n*NOTE:* To test you will have to composer reload or update or something....\r\n\r\n*** Testing Notes ***\r\n\r\nIf the queue is able to process tasks then this is fixed, as it was the dispatching of tasks that was affected. Note if you have a queue already running you need to restart it when switching branches.","created_at":"2015-02-20T18:40:03Z","updated_at":"2015-02-20T19:26:01Z","closed_at":"2015-02-20T19:26:01Z","merged_at":"2015-02-20T19:26:01Z","merge_commit_sha":"be1be8e8c31455f3c197e9658b12622ac8539e03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12/commits","review_comments_url":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12/comments","review_comment_url":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/comments/{number}","comments_url":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/12/comments","statuses_url":"https://api.github.com/repos/TribeHR/cakephp_queue/statuses/ff5bc1353c02ab0dcef0d4f00e640247c8b70a82","head":{"label":"KoryHodgson:queue-needs-to-load-tasks","ref":"queue-needs-to-load-tasks","sha":"ff5bc1353c02ab0dcef0d4f00e640247c8b70a82","user":{"login":"KoryHodgson","id":1634903,"avatar_url":"https://avatars.githubusercontent.com/u/1634903?v=3","gravatar_id":"","url":"https://api.github.com/users/KoryHodgson","html_url":"https://github.com/KoryHodgson","followers_url":"https://api.github.com/users/KoryHodgson/followers","following_url":"https://api.github.com/users/KoryHodgson/following{/other_user}","gists_url":"https://api.github.com/users/KoryHodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/KoryHodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoryHodgson/subscriptions","organizations_url":"https://api.github.com/users/KoryHodgson/orgs","repos_url":"https://api.github.com/users/KoryHodgson/repos","events_url":"https://api.github.com/users/KoryHodgson/events{/privacy}","received_events_url":"https://api.github.com/users/KoryHodgson/received_events","type":"User","site_admin":false},"repo":{"id":16590272,"name":"cakephp_queue","full_name":"KoryHodgson/cakephp_queue","owner":{"login":"KoryHodgson","id":1634903,"avatar_url":"https://avatars.githubusercontent.com/u/1634903?v=3","gravatar_id":"","url":"https://api.github.com/users/KoryHodgson","html_url":"https://github.com/KoryHodgson","followers_url":"https://api.github.com/users/KoryHodgson/followers","following_url":"https://api.github.com/users/KoryHodgson/following{/other_user}","gists_url":"https://api.github.com/users/KoryHodgson/gists{/gist_id}","starred_url":"https://api.github.com/users/KoryHodgson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoryHodgson/subscriptions","organizations_url":"https://api.github.com/users/KoryHodgson/orgs","repos_url":"https://api.github.com/users/KoryHodgson/repos","events_url":"https://api.github.com/users/KoryHodgson/events{/privacy}","received_events_url":"https://api.github.com/users/KoryHodgson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KoryHodgson/cakephp_queue","description":"A minimalistic JobQueue Plugin for CakePHP","fork":true,"url":"https://api.github.com/repos/KoryHodgson/cakephp_queue","forks_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/forks","keys_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/teams","hooks_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/hooks","issue_events_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/issues/events{/number}","events_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/events","assignees_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/assignees{/user}","branches_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/branches{/branch}","tags_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/tags","blobs_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/statuses/{sha}","languages_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/languages","stargazers_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/stargazers","contributors_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/contributors","subscribers_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/subscribers","subscription_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/subscription","commits_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/issues/comments/{number}","contents_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/contents/{+path}","compare_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/merges","archive_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/downloads","issues_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/issues{/number}","pulls_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/pulls{/number}","milestones_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/milestones{/number}","notifications_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/labels{/name}","releases_url":"https://api.github.com/repos/KoryHodgson/cakephp_queue/releases{/id}","created_at":"2014-02-06T19:13:14Z","updated_at":"2014-02-06T19:34:26Z","pushed_at":"2015-02-20T18:35:57Z","git_url":"git://github.com/KoryHodgson/cakephp_queue.git","ssh_url":"git@github.com:KoryHodgson/cakephp_queue.git","clone_url":"https://github.com/KoryHodgson/cakephp_queue.git","svn_url":"https://github.com/KoryHodgson/cakephp_queue","homepage":"http://www.ohloh.net/p/cakephp_queue","size":208,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TribeHR:master","ref":"master","sha":"9cae1f0f4e14b63d227f4f883ce3746ab98fe021","user":{"login":"TribeHR","id":606065,"avatar_url":"https://avatars.githubusercontent.com/u/606065?v=3","gravatar_id":"","url":"https://api.github.com/users/TribeHR","html_url":"https://github.com/TribeHR","followers_url":"https://api.github.com/users/TribeHR/followers","following_url":"https://api.github.com/users/TribeHR/following{/other_user}","gists_url":"https://api.github.com/users/TribeHR/gists{/gist_id}","starred_url":"https://api.github.com/users/TribeHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TribeHR/subscriptions","organizations_url":"https://api.github.com/users/TribeHR/orgs","repos_url":"https://api.github.com/users/TribeHR/repos","events_url":"https://api.github.com/users/TribeHR/events{/privacy}","received_events_url":"https://api.github.com/users/TribeHR/received_events","type":"Organization","site_admin":false},"repo":{"id":4508791,"name":"cakephp_queue","full_name":"TribeHR/cakephp_queue","owner":{"login":"TribeHR","id":606065,"avatar_url":"https://avatars.githubusercontent.com/u/606065?v=3","gravatar_id":"","url":"https://api.github.com/users/TribeHR","html_url":"https://github.com/TribeHR","followers_url":"https://api.github.com/users/TribeHR/followers","following_url":"https://api.github.com/users/TribeHR/following{/other_user}","gists_url":"https://api.github.com/users/TribeHR/gists{/gist_id}","starred_url":"https://api.github.com/users/TribeHR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TribeHR/subscriptions","organizations_url":"https://api.github.com/users/TribeHR/orgs","repos_url":"https://api.github.com/users/TribeHR/repos","events_url":"https://api.github.com/users/TribeHR/events{/privacy}","received_events_url":"https://api.github.com/users/TribeHR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TribeHR/cakephp_queue","description":"A minimalistic JobQueue Plugin for CakePHP","fork":true,"url":"https://api.github.com/repos/TribeHR/cakephp_queue","forks_url":"https://api.github.com/repos/TribeHR/cakephp_queue/forks","keys_url":"https://api.github.com/repos/TribeHR/cakephp_queue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TribeHR/cakephp_queue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TribeHR/cakephp_queue/teams","hooks_url":"https://api.github.com/repos/TribeHR/cakephp_queue/hooks","issue_events_url":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/events{/number}","events_url":"https://api.github.com/repos/TribeHR/cakephp_queue/events","assignees_url":"https://api.github.com/repos/TribeHR/cakephp_queue/assignees{/user}","branches_url":"https://api.github.com/repos/TribeHR/cakephp_queue/branches{/branch}","tags_url":"https://api.github.com/repos/TribeHR/cakephp_queue/tags","blobs_url":"https://api.github.com/repos/TribeHR/cakephp_queue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TribeHR/cakephp_queue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TribeHR/cakephp_queue/git/refs{/sha}","trees_url":"https://api.github.com/repos/TribeHR/cakephp_queue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TribeHR/cakephp_queue/statuses/{sha}","languages_url":"https://api.github.com/repos/TribeHR/cakephp_queue/languages","stargazers_url":"https://api.github.com/repos/TribeHR/cakephp_queue/stargazers","contributors_url":"https://api.github.com/repos/TribeHR/cakephp_queue/contributors","subscribers_url":"https://api.github.com/repos/TribeHR/cakephp_queue/subscribers","subscription_url":"https://api.github.com/repos/TribeHR/cakephp_queue/subscription","commits_url":"https://api.github.com/repos/TribeHR/cakephp_queue/commits{/sha}","git_commits_url":"https://api.github.com/repos/TribeHR/cakephp_queue/git/commits{/sha}","comments_url":"https://api.github.com/repos/TribeHR/cakephp_queue/comments{/number}","issue_comment_url":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/comments/{number}","contents_url":"https://api.github.com/repos/TribeHR/cakephp_queue/contents/{+path}","compare_url":"https://api.github.com/repos/TribeHR/cakephp_queue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TribeHR/cakephp_queue/merges","archive_url":"https://api.github.com/repos/TribeHR/cakephp_queue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TribeHR/cakephp_queue/downloads","issues_url":"https://api.github.com/repos/TribeHR/cakephp_queue/issues{/number}","pulls_url":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls{/number}","milestones_url":"https://api.github.com/repos/TribeHR/cakephp_queue/milestones{/number}","notifications_url":"https://api.github.com/repos/TribeHR/cakephp_queue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TribeHR/cakephp_queue/labels{/name}","releases_url":"https://api.github.com/repos/TribeHR/cakephp_queue/releases{/id}","created_at":"2012-05-31T14:38:51Z","updated_at":"2014-02-06T19:34:28Z","pushed_at":"2015-02-20T19:26:02Z","git_url":"git://github.com/TribeHR/cakephp_queue.git","ssh_url":"git@github.com:TribeHR/cakephp_queue.git","clone_url":"https://github.com/TribeHR/cakephp_queue.git","svn_url":"https://github.com/TribeHR/cakephp_queue","homepage":"http://www.ohloh.net/p/cakephp_queue","size":302,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":0,"forks":6,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12"},"html":{"href":"https://github.com/TribeHR/cakephp_queue/pull/12"},"issue":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/12"},"comments":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/TribeHR/cakephp_queue/statuses/ff5bc1353c02ab0dcef0d4f00e640247c8b70a82"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"iniq","id":1020424,"avatar_url":"https://avatars.githubusercontent.com/u/1020424?v=3","gravatar_id":"","url":"https://api.github.com/users/iniq","html_url":"https://github.com/iniq","followers_url":"https://api.github.com/users/iniq/followers","following_url":"https://api.github.com/users/iniq/following{/other_user}","gists_url":"https://api.github.com/users/iniq/gists{/gist_id}","starred_url":"https://api.github.com/users/iniq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iniq/subscriptions","organizations_url":"https://api.github.com/users/iniq/orgs","repos_url":"https://api.github.com/users/iniq/repos","events_url":"https://api.github.com/users/iniq/events{/privacy}","received_events_url":"https://api.github.com/users/iniq/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":3,"deletions":2,"changed_files":2}}