{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/4443","labels_url":"https://api.github.com/repos/laravel/framework/issues/4443/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/4443/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/4443/events","html_url":"https://github.com/laravel/framework/issues/4443","id":33807422,"number":4443,"title":"supervised queue:listen stops working","user":{"login":"schickling","id":1567498,"avatar_url":"https://avatars.githubusercontent.com/u/1567498?v=3","gravatar_id":"","url":"https://api.github.com/users/schickling","html_url":"https://github.com/schickling","followers_url":"https://api.github.com/users/schickling/followers","following_url":"https://api.github.com/users/schickling/following{/other_user}","gists_url":"https://api.github.com/users/schickling/gists{/gist_id}","starred_url":"https://api.github.com/users/schickling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schickling/subscriptions","organizations_url":"https://api.github.com/users/schickling/orgs","repos_url":"https://api.github.com/users/schickling/repos","events_url":"https://api.github.com/users/schickling/events{/privacy}","received_events_url":"https://api.github.com/users/schickling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-05-19T15:00:33Z","updated_at":"2015-11-17T11:00:06Z","closed_at":"2014-05-19T22:00:40Z","body":"I'm running the queue listen process via the following supervisor config (I'm using SQS).\r\n\r\n```\r\n[program:laravel-queue]\r\ncommand=/usr/bin/php /var/www/server/current/artisan queue:listen --timeout 300 --tries=5 --env=\"production\"\r\nusername=www-data\r\nautostart=true\r\nautorestart=true\r\nstdout_logfile=/var/log/%(program_name)s.stdout\r\nstderr_logfile=/var/log/%(program_name)s.stderr\r\n```\r\n\r\nSometimes (~ every 5th day) the listen process \"stops\" and doesn't consume any further tasks in the queue. The process doesn't exit and thus won't be restarted via supervisor. The stdout/stderr logfiles are empty.\r\n\r\nWhen I restart the queue listen process via `supervisorctl restart` all queued up processes get worked off.\r\n\r\nIs there a best practice to monitor this behavior correctly until this issue gets resolved?\r\nI've written a little package to check for me if the queue is jammed, but it feels not very clean: https://github.com/schickling/laravel-queue-checker"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/157337097","html_url":"https://github.com/laravel/framework/issues/4443#issuecomment-157337097","issue_url":"https://api.github.com/repos/laravel/framework/issues/4443","id":157337097,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T11:00:05Z","updated_at":"2015-11-17T11:00:05Z","body":"Are they making HTTP calls? If so make sure you set a max timeout in your HTTP client.\n\nOn Tue, Nov 17, 2015 at 3:01 AM, Matej Velikonja <notifications@github.com>\nwrote:\n\n> Has anoyone figured out anything regarding this? I've encountered the same issue on laravel 5.1.*. With supervisor I spawned 5 workers in daemon mode. They all start working for the first time, but after some time only one is grabbing new jobs, the rest are just there and they don't do anything.\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/laravel/framework/issues/4443#issuecomment-157312961"}}