我正在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队列/运行时,我得到
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 /run后,队列表将被清除,因此队列似乎是working...but,没有下载任何文件。
我已经检查了文件夹上的权限,并且它有写权限。
有人有什么想法吗?
https://stackoverflow.com/questions/52272196
复制相似问题