yiisoft / yiisoft/yii2-queue

bug A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107

Open
#218 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status:to be verified type:bug
Dominant language
PHP
Stars
1.1k
Forks
285
Avg merge
5d 3h
Merged PRs (30d)
2

Description

enviroment: PHP7, yii2 basic.
I config "redis" to using as queue.
In file: config/console and config/web
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => '192.168.146.252',
'port' => 8002,
'database' => 0,
'password' => '123456a@',
],
'queue' => [
'class' => \yii\queue\redis\Queue::class,
'redis' => 'redis', // Redis connection component or its config
'channel' => 'queue', // Queue channel key
],
After I run: php yii queue/listen
I see "A non-numeric value encountered in vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php:107"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with php yii queue/listen using the Redis configuration shown, then inspect vendor/yiisoft/yii2-queue/src/drivers/redis/Queue.php at line 107. Compare the values involved in the Redis queue listener and determine what condition produces the warning; done means the listener runs without the non-numeric warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, redis
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.