yzh52521/webman-task当任务比较多的时候再添加报错

Zory

问题描述

任务添加了80多个,再添加就会报错,无法成功。各位大佬,这该怎么破

程序代码

for($i=0;$i<=100;$i++){
    $param = [
        'method' => 'crontabCreate',
        'args'   => [
            'title'     => "任务[{$i}]",
            'type'      => 1,
            'rule'      => "*/30 * * * * *",
            'target'    => "version",
            'status'    => 1,
            'remark'    => "{$i}",
        ]
    ];
    $resp = \yzh52521\Task\Client::instance()->request($param);
}

报错信息

Fatal error: Uncaught TypeError: json_decode() expects parameter 1 to be string, bool given in xxxx\vendor\yzh52521\webman-task\src\Client.php:33

操作系统及workerman/webman等框架组件具体版本

windows
"workerman/webman-framework": "^1.5.0"
"workerman/crontab": "^1.0"
"php-di/php-di": "6.3"
"psr/container": "1.1.1"
"guzzlehttp/guzzle": "^7.0"
"webman/think-orm": "^1.1"
"yzh52521/webman-task": "^1.48"
76 0 0
0个回答

×
🔝