beerbuddha's avatar

Queue:listen with redis not working

I am able to queue up jobs in redis as I checked redis manually. I'm also aware that i need both predis and illuminate\redis

        "predis/predis": "^1.0",
        "illuminate/redis": "5.2.*"

which i have included and tested

$app->get('/cache/predis', function () use ($app) {
    $client = new Predis\Client();
    $client->set('foo', 'bar');
    $value = $client->get('foo');
    return response()->json($value);
});
$app->get('/cache/redis', function () use ($app) {
   
    $cache = $app['cache'];
    $cache->store('redis')->put('bar', 'baz', 10);
    $value = $cache>store('redis')->get('bar');
    return response()->json($value);
});

However when I run: `php artisan queue:listen redis'

it tells me:

  [InvalidArgumentException]
  No connector for []

Any idea why? Both my config/database.php and config/queue.php are default configuration

0 likes
2 replies
veve286's avatar

php artisan queue:listen

That's it .It will use the driver you configured on database.php. You don't have to pass redis as argument .

beerbuddha's avatar

@veve286 It doesn't work. Even when taking it out it doesnt work. The reason why I would like to force the redis is because I have two types of queues working. Even if redis by default selected. I know that the redis is properly configured because of the example I showed earlier.

Please or to participate in this conversation.