Exception 'TypeError' with message 'Argument 5 passed to SymfonyComponentProcessProcess::__construct() must be of the type float or null, string given, called in /var/www/html/5i5j-cron/vendor/yiisoft/yii2-queue/src/cli/Command.php on line 185'
原因是ttr取到空字符串
正常消息体结构为
// $res = $redis->hscan('house_queue.messages', $iterator, '*', 100); 300;O:31:"app\models\jobs\HouseCompareJob":9:{s:6:"cityId";i:2;s:7:"houseId";i:90356895;s:9:"houseType";i:1;s:5:"price";i:0;s:9:"priceUnit";i:0;s:9:"buildArea";i:0;s:6:"updown";i:2;s:10:"updateTime";i:1700750747090;s:5:"retry";i:0;}
前面的300为ttr,用分号分隔