How to get all pending jobs in laravel queue on redis?

后端 未结 7 971
抹茶落季
抹茶落季 2020-12-13 10:06

Queue listener was not started on a server, some jobs where pushed (using Redis driver).

How could I count (or get all) theses jobs ? I did not found any artisan co

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 10:13

    You can also use the Redis Facade directly by doing this:

    use Redis;
    
    \Redis::lrange('queues:$queueName', 0, -1);
    

    Tested in Laravel 5.6 but should work for all 5.X.

提交回复
热议问题