{"action":"created","comment":{"url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/comments/55161678","id":55161678,"diff_hunk":"@@ -147,11 +147,21 @@ def publish(channel, data, queue_in_memory=true)\n   end\n \n   def ensure_backlog_flushed\n-    while true\n+    flushed = false\n+\n+    while !flushed\n       try_again = false\n \n+      if is_readonly?\n+        sleep 1","path":"lib/message_bus/backends/redis.rb","position":11,"original_position":11,"commit_id":"76e0a98f30f6905e378861beff2d7f86af8cb0fd","original_commit_id":"76e0a98f30f6905e378861beff2d7f86af8cb0fd","user":{"login":"SamSaffron","id":5213,"avatar_url":"https://avatars.githubusercontent.com/u/5213?v=3","gravatar_id":"","url":"https://api.github.com/users/SamSaffron","html_url":"https://github.com/SamSaffron","followers_url":"https://api.github.com/users/SamSaffron/followers","following_url":"https://api.github.com/users/SamSaffron/following{/other_user}","gists_url":"https://api.github.com/users/SamSaffron/gists{/gist_id}","starred_url":"https://api.github.com/users/SamSaffron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamSaffron/subscriptions","organizations_url":"https://api.github.com/users/SamSaffron/orgs","repos_url":"https://api.github.com/users/SamSaffron/repos","events_url":"https://api.github.com/users/SamSaffron/events{/privacy}","received_events_url":"https://api.github.com/users/SamSaffron/received_events","type":"User","site_admin":false},"body":"ahh it is here .... I see. ","created_at":"2016-03-07T04:38:07Z","updated_at":"2016-03-07T04:38:07Z","html_url":"https://github.com/SamSaffron/message_bus/pull/84#discussion_r55161678","pull_request_url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/comments/55161678"},"html":{"href":"https://github.com/SamSaffron/message_bus/pull/84#discussion_r55161678"},"pull_request":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84","id":61870072,"html_url":"https://github.com/SamSaffron/message_bus/pull/84","diff_url":"https://github.com/SamSaffron/message_bus/pull/84.diff","patch_url":"https://github.com/SamSaffron/message_bus/pull/84.patch","issue_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/84","number":84,"state":"open","locked":false,"title":"FIX: MessageBus stucked in infinite loop.","user":{"login":"tgxworld","id":4335742,"avatar_url":"https://avatars.githubusercontent.com/u/4335742?v=3","gravatar_id":"","url":"https://api.github.com/users/tgxworld","html_url":"https://github.com/tgxworld","followers_url":"https://api.github.com/users/tgxworld/followers","following_url":"https://api.github.com/users/tgxworld/following{/other_user}","gists_url":"https://api.github.com/users/tgxworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tgxworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgxworld/subscriptions","organizations_url":"https://api.github.com/users/tgxworld/orgs","repos_url":"https://api.github.com/users/tgxworld/repos","events_url":"https://api.github.com/users/tgxworld/events{/privacy}","received_events_url":"https://api.github.com/users/tgxworld/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-07T03:53:15Z","updated_at":"2016-03-07T04:38:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31c23cad9bfcc9e5e576f1b6e9607cbce035933d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84/commits","review_comments_url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84/comments","review_comment_url":"https://api.github.com/repos/SamSaffron/message_bus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/84/comments","statuses_url":"https://api.github.com/repos/SamSaffron/message_bus/statuses/76e0a98f30f6905e378861beff2d7f86af8cb0fd","head":{"label":"tgxworld:fix_bus_causing_rails_app_to_stall","ref":"fix_bus_causing_rails_app_to_stall","sha":"76e0a98f30f6905e378861beff2d7f86af8cb0fd","user":{"login":"tgxworld","id":4335742,"avatar_url":"https://avatars.githubusercontent.com/u/4335742?v=3","gravatar_id":"","url":"https://api.github.com/users/tgxworld","html_url":"https://github.com/tgxworld","followers_url":"https://api.github.com/users/tgxworld/followers","following_url":"https://api.github.com/users/tgxworld/following{/other_user}","gists_url":"https://api.github.com/users/tgxworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tgxworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgxworld/subscriptions","organizations_url":"https://api.github.com/users/tgxworld/orgs","repos_url":"https://api.github.com/users/tgxworld/repos","events_url":"https://api.github.com/users/tgxworld/events{/privacy}","received_events_url":"https://api.github.com/users/tgxworld/received_events","type":"User","site_admin":false},"repo":{"id":37060407,"name":"message_bus","full_name":"tgxworld/message_bus","owner":{"login":"tgxworld","id":4335742,"avatar_url":"https://avatars.githubusercontent.com/u/4335742?v=3","gravatar_id":"","url":"https://api.github.com/users/tgxworld","html_url":"https://github.com/tgxworld","followers_url":"https://api.github.com/users/tgxworld/followers","following_url":"https://api.github.com/users/tgxworld/following{/other_user}","gists_url":"https://api.github.com/users/tgxworld/gists{/gist_id}","starred_url":"https://api.github.com/users/tgxworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgxworld/subscriptions","organizations_url":"https://api.github.com/users/tgxworld/orgs","repos_url":"https://api.github.com/users/tgxworld/repos","events_url":"https://api.github.com/users/tgxworld/events{/privacy}","received_events_url":"https://api.github.com/users/tgxworld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tgxworld/message_bus","description":"A reliable and robust messaging bus for Ruby and Rack","fork":true,"url":"https://api.github.com/repos/tgxworld/message_bus","forks_url":"https://api.github.com/repos/tgxworld/message_bus/forks","keys_url":"https://api.github.com/repos/tgxworld/message_bus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgxworld/message_bus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgxworld/message_bus/teams","hooks_url":"https://api.github.com/repos/tgxworld/message_bus/hooks","issue_events_url":"https://api.github.com/repos/tgxworld/message_bus/issues/events{/number}","events_url":"https://api.github.com/repos/tgxworld/message_bus/events","assignees_url":"https://api.github.com/repos/tgxworld/message_bus/assignees{/user}","branches_url":"https://api.github.com/repos/tgxworld/message_bus/branches{/branch}","tags_url":"https://api.github.com/repos/tgxworld/message_bus/tags","blobs_url":"https://api.github.com/repos/tgxworld/message_bus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgxworld/message_bus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgxworld/message_bus/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgxworld/message_bus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgxworld/message_bus/statuses/{sha}","languages_url":"https://api.github.com/repos/tgxworld/message_bus/languages","stargazers_url":"https://api.github.com/repos/tgxworld/message_bus/stargazers","contributors_url":"https://api.github.com/repos/tgxworld/message_bus/contributors","subscribers_url":"https://api.github.com/repos/tgxworld/message_bus/subscribers","subscription_url":"https://api.github.com/repos/tgxworld/message_bus/subscription","commits_url":"https://api.github.com/repos/tgxworld/message_bus/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgxworld/message_bus/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgxworld/message_bus/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgxworld/message_bus/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgxworld/message_bus/contents/{+path}","compare_url":"https://api.github.com/repos/tgxworld/message_bus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgxworld/message_bus/merges","archive_url":"https://api.github.com/repos/tgxworld/message_bus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgxworld/message_bus/downloads","issues_url":"https://api.github.com/repos/tgxworld/message_bus/issues{/number}","pulls_url":"https://api.github.com/repos/tgxworld/message_bus/pulls{/number}","milestones_url":"https://api.github.com/repos/tgxworld/message_bus/milestones{/number}","notifications_url":"https://api.github.com/repos/tgxworld/message_bus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgxworld/message_bus/labels{/name}","releases_url":"https://api.github.com/repos/tgxworld/message_bus/releases{/id}","deployments_url":"https://api.github.com/repos/tgxworld/message_bus/deployments","created_at":"2015-06-08T10:27:10Z","updated_at":"2015-06-08T10:27:10Z","pushed_at":"2016-03-07T03:50:34Z","git_url":"git://github.com/tgxworld/message_bus.git","ssh_url":"git@github.com:tgxworld/message_bus.git","clone_url":"https://github.com/tgxworld/message_bus.git","svn_url":"https://github.com/tgxworld/message_bus","homepage":null,"size":558,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"SamSaffron:master","ref":"master","sha":"1323dde7bb0959e9d5b9652cf77882f3639bb823","user":{"login":"SamSaffron","id":5213,"avatar_url":"https://avatars.githubusercontent.com/u/5213?v=3","gravatar_id":"","url":"https://api.github.com/users/SamSaffron","html_url":"https://github.com/SamSaffron","followers_url":"https://api.github.com/users/SamSaffron/followers","following_url":"https://api.github.com/users/SamSaffron/following{/other_user}","gists_url":"https://api.github.com/users/SamSaffron/gists{/gist_id}","starred_url":"https://api.github.com/users/SamSaffron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamSaffron/subscriptions","organizations_url":"https://api.github.com/users/SamSaffron/orgs","repos_url":"https://api.github.com/users/SamSaffron/repos","events_url":"https://api.github.com/users/SamSaffron/events{/privacy}","received_events_url":"https://api.github.com/users/SamSaffron/received_events","type":"User","site_admin":false},"repo":{"id":10071490,"name":"message_bus","full_name":"SamSaffron/message_bus","owner":{"login":"SamSaffron","id":5213,"avatar_url":"https://avatars.githubusercontent.com/u/5213?v=3","gravatar_id":"","url":"https://api.github.com/users/SamSaffron","html_url":"https://github.com/SamSaffron","followers_url":"https://api.github.com/users/SamSaffron/followers","following_url":"https://api.github.com/users/SamSaffron/following{/other_user}","gists_url":"https://api.github.com/users/SamSaffron/gists{/gist_id}","starred_url":"https://api.github.com/users/SamSaffron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamSaffron/subscriptions","organizations_url":"https://api.github.com/users/SamSaffron/orgs","repos_url":"https://api.github.com/users/SamSaffron/repos","events_url":"https://api.github.com/users/SamSaffron/events{/privacy}","received_events_url":"https://api.github.com/users/SamSaffron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SamSaffron/message_bus","description":"A reliable and robust messaging bus for Ruby and Rack","fork":false,"url":"https://api.github.com/repos/SamSaffron/message_bus","forks_url":"https://api.github.com/repos/SamSaffron/message_bus/forks","keys_url":"https://api.github.com/repos/SamSaffron/message_bus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SamSaffron/message_bus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SamSaffron/message_bus/teams","hooks_url":"https://api.github.com/repos/SamSaffron/message_bus/hooks","issue_events_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/events{/number}","events_url":"https://api.github.com/repos/SamSaffron/message_bus/events","assignees_url":"https://api.github.com/repos/SamSaffron/message_bus/assignees{/user}","branches_url":"https://api.github.com/repos/SamSaffron/message_bus/branches{/branch}","tags_url":"https://api.github.com/repos/SamSaffron/message_bus/tags","blobs_url":"https://api.github.com/repos/SamSaffron/message_bus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SamSaffron/message_bus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SamSaffron/message_bus/git/refs{/sha}","trees_url":"https://api.github.com/repos/SamSaffron/message_bus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SamSaffron/message_bus/statuses/{sha}","languages_url":"https://api.github.com/repos/SamSaffron/message_bus/languages","stargazers_url":"https://api.github.com/repos/SamSaffron/message_bus/stargazers","contributors_url":"https://api.github.com/repos/SamSaffron/message_bus/contributors","subscribers_url":"https://api.github.com/repos/SamSaffron/message_bus/subscribers","subscription_url":"https://api.github.com/repos/SamSaffron/message_bus/subscription","commits_url":"https://api.github.com/repos/SamSaffron/message_bus/commits{/sha}","git_commits_url":"https://api.github.com/repos/SamSaffron/message_bus/git/commits{/sha}","comments_url":"https://api.github.com/repos/SamSaffron/message_bus/comments{/number}","issue_comment_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/comments{/number}","contents_url":"https://api.github.com/repos/SamSaffron/message_bus/contents/{+path}","compare_url":"https://api.github.com/repos/SamSaffron/message_bus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SamSaffron/message_bus/merges","archive_url":"https://api.github.com/repos/SamSaffron/message_bus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SamSaffron/message_bus/downloads","issues_url":"https://api.github.com/repos/SamSaffron/message_bus/issues{/number}","pulls_url":"https://api.github.com/repos/SamSaffron/message_bus/pulls{/number}","milestones_url":"https://api.github.com/repos/SamSaffron/message_bus/milestones{/number}","notifications_url":"https://api.github.com/repos/SamSaffron/message_bus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SamSaffron/message_bus/labels{/name}","releases_url":"https://api.github.com/repos/SamSaffron/message_bus/releases{/id}","deployments_url":"https://api.github.com/repos/SamSaffron/message_bus/deployments","created_at":"2013-05-15T05:19:31Z","updated_at":"2016-03-07T00:17:20Z","pushed_at":"2016-03-07T03:53:15Z","git_url":"git://github.com/SamSaffron/message_bus.git","ssh_url":"git@github.com:SamSaffron/message_bus.git","clone_url":"https://github.com/SamSaffron/message_bus.git","svn_url":"https://github.com/SamSaffron/message_bus","homepage":null,"size":573,"stargazers_count":857,"watchers_count":857,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"open_issues_count":6,"forks":61,"open_issues":6,"watchers":857,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84"},"html":{"href":"https://github.com/SamSaffron/message_bus/pull/84"},"issue":{"href":"https://api.github.com/repos/SamSaffron/message_bus/issues/84"},"comments":{"href":"https://api.github.com/repos/SamSaffron/message_bus/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SamSaffron/message_bus/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/SamSaffron/message_bus/statuses/76e0a98f30f6905e378861beff2d7f86af8cb0fd"}}}}