我正在Windows的Ampps上运行Yii2,并且已经安装了https://github.com/yiisoft/yii2-queue
我只是尝试设置提供的示例,但我什至无法使它正常工作。
正在发生的事情是我跑步
Yii::$app->queue->push(new QueueLeadEmailJob([
'url' => 'https://previews.123rf.com/images/fordzolo/fordzolo1506/fordzolo150600296/41026708-example-white-stamp-text-on-red-backgroud.jpg',
'file' => 'C:\Program Files (x86)\Ampps\www\websitedomain.com\41026708-example-white-stamp-text-on-red-backgroud.jpg',
]));
我正在将正确的值添加到队列表中。当我在命令行中运行yii queue / run时,我得到
2018-09-11 08:36:37 [pid: 4144] - Worker is started
2018-09-11 08:36:37 [3] common\components\queues\QueueLeadEmailJob (attempt: 1, pid: 4144) - Error
> Symfony\Component\Process\Exception\ProcessFailedException: The command "C:\Program Files (x86)\Ampps\php-7.1\php.exe C:\Program Files (x86)\Ampps\www\websitedomain.com\hub\yii queue/exec "3" "300" "1" "4144" --verbose=1 --color=" failed.
2018-09-11 08:36:37 [pid: 4144] - Worker is stopped (0:00:00)
我可以看到该错误,但是我不知道如何解决。我已经搜索过,但是(显然)没有找到解决方案。在运行yii queue / run之后,队列表被清除,因此队列似乎在工作...但是没有文件下载。
我已经检查了该文件夹的权限,并且它具有写权限。
有人有什么想法吗?