Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/246.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php laravel作业未执行-尝试次数太多或运行时间太长_Php_Laravel - Fatal编程技术网

Php laravel作业未执行-尝试次数太多或运行时间太长

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)-&

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)->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