webman但凡開啟任一定時(shí)任務(wù)后,并且把任務(wù)里面的邏輯代碼都注釋掉,在windows系統(tǒng)下每次重載都會(huì)報(bào)錯(cuò),在linux下卻正常,嘗試過使用管理員身份運(yùn)行windows.php,但在重載時(shí)仍然報(bào)錯(cuò),把定時(shí)任務(wù)關(guān)掉才不會(huì)報(bào)錯(cuò),這到底是怎么回事呢?
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下報(bào)錯(cuò):
linux下正常
windows系統(tǒng)
Workerman version:4.1.10
PHP version:7.4.3
Webman-framework v1.5.6
workerman/crontab "version": "v1.0.6"