{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/11714","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/11714/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/11714/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/11714/events","html_url":"https://github.com/laravel/framework/issues/11714","id":125114523,"node_id":"MDU6SXNzdWUxMjUxMTQ1MjM=","number":11714,"title":"[5.1] [5.2] queue:listen and queue:work not working on windows","user":{"login":"waylaidwanderer","id":2882110,"node_id":"MDQ6VXNlcjI4ODIxMTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2882110?v=4","gravatar_id":"","url":"https://api.github.com/users/waylaidwanderer","html_url":"https://github.com/waylaidwanderer","followers_url":"https://api.github.com/users/waylaidwanderer/followers","following_url":"https://api.github.com/users/waylaidwanderer/following{/other_user}","gists_url":"https://api.github.com/users/waylaidwanderer/gists{/gist_id}","starred_url":"https://api.github.com/users/waylaidwanderer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waylaidwanderer/subscriptions","organizations_url":"https://api.github.com/users/waylaidwanderer/orgs","repos_url":"https://api.github.com/users/waylaidwanderer/repos","events_url":"https://api.github.com/users/waylaidwanderer/events{/privacy}","received_events_url":"https://api.github.com/users/waylaidwanderer/received_events","type":"User","site_admin":false},"labels":[{"id":24480042,"node_id":"MDU6TGFiZWwyNDQ4MDA0Mg==","url":"https://api.github.com/repos/laravel/framework/labels/Action%20needed","name":"Action needed","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":42,"created_at":"2016-01-06T05:38:52Z","updated_at":"2018-07-04T20:33:06Z","closed_at":"2017-05-25T15:10:04Z","author_association":"NONE","body":"I can't figure out why this is happening. I'm am running `redis-cli monitor` to check for output, and while calling `$this->dispatch(JOB)` works (I can see the job being `RPUSH`ed), neither running `php artisan queue:listen` or `php artisan queue:work` appears to be doing anything in redis (no change in the monitored output).\n\nThere is no output for `php artisan queue:work` before it terminates (or for `queue:listen` before I terminate it).\n\nI've tried specifying the connection with `php artisan queue:listen/work redis` but this doesn't help either.\n\nThe above description was for redis, but using the database driver has the same issue. It's inserted in the database correctly, but is never processed (`attempts` is always `0`).\n\nI tried upgrading to 5.2 but with the same result. I used `php artisan make:job ClassName --queued` in 5.1 to create the command. In 5.2 I've removed `SelfHandling` from the class as well.\n\nOne other thing to note, it works fine when I set `QUEUE_DRIVER=sync` in `.env`. The queue used is `default` (i.e. I didn't specify a different queue).\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/402555248","html_url":"https://github.com/laravel/framework/issues/11714#issuecomment-402555248","issue_url":"https://api.github.com/repos/laravel/framework/issues/11714","id":402555248,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjU1NTI0OA==","user":{"login":"mrliptontea","id":3495587,"node_id":"MDQ6VXNlcjM0OTU1ODc=","avatar_url":"https://avatars1.githubusercontent.com/u/3495587?v=4","gravatar_id":"","url":"https://api.github.com/users/mrliptontea","html_url":"https://github.com/mrliptontea","followers_url":"https://api.github.com/users/mrliptontea/followers","following_url":"https://api.github.com/users/mrliptontea/following{/other_user}","gists_url":"https://api.github.com/users/mrliptontea/gists{/gist_id}","starred_url":"https://api.github.com/users/mrliptontea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrliptontea/subscriptions","organizations_url":"https://api.github.com/users/mrliptontea/orgs","repos_url":"https://api.github.com/users/mrliptontea/repos","events_url":"https://api.github.com/users/mrliptontea/events{/privacy}","received_events_url":"https://api.github.com/users/mrliptontea/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T20:33:06Z","updated_at":"2018-07-04T20:33:06Z","author_association":"CONTRIBUTOR","body":"@pmochine just like back in February, please check the following:\r\n\r\n> * Trace what's being executed when you run queue:work (using a remote debugger or dd(); in the code).\r\n> * Whether you can manually see jobs in your queue driver.\r\n\r\nHonestly, I just tested this:\r\n\r\n1. Install Laravel 5.2\r\n    ```shell\r\n    git clone https://github.com/laravel/laravel.git laravel52\r\n    cd laravel52\r\n    composer install\r\n    composer require predis/predis\r\n    cp .env.example .env\r\n    php artisan key:generate\r\n    ```\r\n2. Create a test job\r\n    ```shell\r\n    php artisan make:job TestQueue\r\n    ```\r\n3. Edit `app/Console/Commands/Inspire.php` - add inside `handle()`:\r\n    ```php\r\n    dispatch(new \\App\\Jobs\\TestQueue);\r\n    ```\r\n4. Edit app/Jobs/TestQueue.php:- add inside `handle()`:\r\n    ```php\r\n    \\Log::info('Hello from the queue');\r\n    ```\r\n5. Run\r\n    ```shell\r\n    docker run --rm -p 6379:6379 -d redis\r\n    php artisan inspire\r\n    php artisan queue:work\r\n    ```\r\n6. Check the log\r\n    ```shell\r\n    tail storage/logs/laravel.log\r\n    ```\r\n    Should show something like\r\n    ```\r\n    [2018-07-04 20:20:20] local.INFO: Hello from the queue\r\n    ```"}}
{"actor":{"display_login":"mrliptontea"}}