嗨,我有一个非常简单的控制台命令,可以复制一些图像,
使用以下控制台命令工作没有任何问题
php artisan revo:copyPhotos baseTenant destination但是,当用artisan::queue从php代码中调用它时,它会失败。
我在failed_jobs表中得到这个错误
{"job":"Illuminate\\Foundation\\Console\\QueuedJob","data":["revo:copyPhotos",{"origin":"baseTenant","destination":"testArtisan"}]}我在php中这样称呼它
Artisan::queue('revo:copyPhotos', ['origin' => 'baseTenant', 'destination' => 'testArtisan']);命令签名:
protected $signature = 'revo:copyPhotos
{origin : The tenant name of the origin account}
{destination : the new account to be created as copy of origin}
';我正在使用带有command的队列和其他队列作业,没有任何问题(扩展job而不是beanstalkd ),
你知道我是不是漏掉了什么?对于失败的作业,storage/logs文件中不会显示任何内容。
发布于 2015-12-14 01:29:58
好的..。我发现我需要打电话给
php artisan queue:restart
因此,队列守护进程知道了新代码
https://stackoverflow.com/questions/34253797
复制相似问题