yii2-queue icon indicating copy to clipboard operation
yii2-queue copied to clipboard

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

Open khanhdq119 opened this issue 7 years ago • 8 comments

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"

khanhdq119 avatar Mar 01 '18 11:03 khanhdq119

https://github.com/yiisoft/yii2-queue/blob/2.0.2/src/drivers/redis/Queue.php#L107 This is comment block. What version are you using? Need more details about the error.

zhuravljov avatar Apr 30 '18 07:04 zhuravljov

Thanks for posting in our issue tracker. In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

This is an automated comment, triggered by adding the label status:need more info.

yii-bot avatar Apr 30 '18 07:04 yii-bot

It has been 2 or more weeks with no response on our request for more information. In order for our issue tracker to be effective, we are closing this issue.

If you want it to be reopened again, feel free to supply us with the requested information.

Thanks!

This is an automated comment, triggered by adding the label expired.

yii-bot avatar Jan 15 '19 16:01 yii-bot

I have same issue

https://github.com/yiisoft/yii2-queue/blob/c9ba0cbafd1f0678d0950ba247b17cd99dfbf31a/src/drivers/redis/Queue.php#L153

$ttr is not numeric sometimes

mikk150 avatar Aug 23 '19 12:08 mikk150

Any idea when/why?

samdark avatar Aug 23 '19 12:08 samdark

for some reason payload is empty

mikk150 avatar Aug 23 '19 12:08 mikk150

We should not assume incorrect payload could be processed...

samdark avatar Aug 23 '19 12:08 samdark

aaaaaand now I cannot reproduce it the way I literally could reproduce it 100% of the time an hour back....

mikk150 avatar Aug 23 '19 13:08 mikk150