webman开启定时任务后,在windows系统下每次重载都会报错,这是怎么回事?

test1688

问题描述

webman但凡开启任一定时任务后,并且把任务里面的逻辑代码都注释掉,在windows系统下每次重载都会报错,在linux下却正常,尝试过使用管理员身份运行windows.php,但在重载时仍然报错,把定时任务关掉才不会报错,这到底是怎么回事呢?

程序代码

return [
    ....其它配置,这里省略....

    'task1'  => [
        'handler'  => process\Task1::class
    ],
    'task2'  => [
        'handler'  => process\Task2::class
    ],
];

报错信息

D:\www\moli\nostalgic_perspective\app\controller\TestController.php update and reload
ERROR: The process with PID 16852 (child process of PID 18220) could not be terminated.
Reason: Access is denied.
ERROR: The process with PID 18372 (child process of PID 18220) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 12232 (child process of PID 18220) could not be terminated.
Reason: Access is denied.
ERROR: The process with PID 15764 (child process of PID 18220) could not be terminated.
Reason: There is no running instance of the task.

截图报错信息里报错文件相关代码

windows下报错:
截图

linux下正常
截图

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

windows系统

Workerman version:4.1.10

PHP version:7.4.3

Webman-framework v1.5.6

workerman/crontab "version": "v1.0.6"

199 1 0
1个回答

walkor

业务不影响就不用管它

×
🔝