{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11142","labels_url":"https://api.github.com/repos/laravel/framework/issues/11142/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11142/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11142/events","html_url":"https://github.com/laravel/framework/pull/11142","id":119946693,"number":11142,"title":"[5.1] Block the queue when popping for jobs","user":{"login":"gwilgen","id":1957437,"avatar_url":"https://avatars.githubusercontent.com/u/1957437?v=3","gravatar_id":"","url":"https://api.github.com/users/gwilgen","html_url":"https://github.com/gwilgen","followers_url":"https://api.github.com/users/gwilgen/followers","following_url":"https://api.github.com/users/gwilgen/following{/other_user}","gists_url":"https://api.github.com/users/gwilgen/gists{/gist_id}","starred_url":"https://api.github.com/users/gwilgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwilgen/subscriptions","organizations_url":"https://api.github.com/users/gwilgen/orgs","repos_url":"https://api.github.com/users/gwilgen/repos","events_url":"https://api.github.com/users/gwilgen/events{/privacy}","received_events_url":"https://api.github.com/users/gwilgen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-02T13:58:46Z","updated_at":"2015-12-02T14:45:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/11142","html_url":"https://github.com/laravel/framework/pull/11142","diff_url":"https://github.com/laravel/framework/pull/11142.diff","patch_url":"https://github.com/laravel/framework/pull/11142.patch"},"body":"Using the Redis BLPOP command the worker can wait until a job is poped (or pushed) in to the queue"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/161319640","html_url":"https://github.com/laravel/framework/pull/11142#issuecomment-161319640","issue_url":"https://api.github.com/repos/laravel/framework/issues/11142","id":161319640,"user":{"login":"gwilgen","id":1957437,"avatar_url":"https://avatars.githubusercontent.com/u/1957437?v=3","gravatar_id":"","url":"https://api.github.com/users/gwilgen","html_url":"https://github.com/gwilgen","followers_url":"https://api.github.com/users/gwilgen/followers","following_url":"https://api.github.com/users/gwilgen/following{/other_user}","gists_url":"https://api.github.com/users/gwilgen/gists{/gist_id}","starred_url":"https://api.github.com/users/gwilgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwilgen/subscriptions","organizations_url":"https://api.github.com/users/gwilgen/orgs","repos_url":"https://api.github.com/users/gwilgen/repos","events_url":"https://api.github.com/users/gwilgen/events{/privacy}","received_events_url":"https://api.github.com/users/gwilgen/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T14:45:00Z","updated_at":"2015-12-02T14:45:00Z","body":"Redis queue is not broken, there isn't any bug here.\r\n\r\nUsing LPOP the queue can be empty and the next LPOP will take seconds (as configured). If instead BLPOP is used, the process will wait until the queue has an element, and then process it instantly.\r\n\r\nIt's a subtle enhancement, open to discussion"}}