Php laravel作业未执行-尝试次数太多或运行时间太长
Laravel(5.6)在工作队列上让我抓狂,因为我所有的工作都返回这个错误Php laravel作业未执行-尝试次数太多或运行时间太长,php,laravel,Php,Laravel,Laravel(5.6)在工作队列上让我抓狂,因为我所有的工作都返回这个错误 App\Jobs\PlateFetchData has been attempted too many times or run too long. The job may have previously timed out. 作业未开始运行 我的队列中约有1k个条目具有相同的作业,但参数不同: foreach($allPlates as $p){ PlateFetchData::dispatch($p)-&
App\Jobs\PlateFetchData has been attempted too many times or run too long.
The job may have previously timed out.
作业未开始运行
我的队列中约有1k个条目具有相同的作业,但参数不同:
foreach($allPlates as $p){
PlateFetchData::dispatch($p)->onQueue('PlateFetchData');
}
我已经尝试过不同的配置,例如:
public $tries = 1000000;
public $timeout = 30;
或
并运行如下命令:
php artisan queue:work --queue=PlateFetchData --tries=1000000
php artisan queue:work --queue=PlateFetchData --tries=1
我做错什么了吗?还有什么可能导致此问题
php artisan queue:work --queue=PlateFetchData --tries=1000000
php artisan queue:work --queue=PlateFetchData --tries=1