I am using (carlos-meneses/laravel-mpdf) package for my Laravel 6 project. I have around 550 product for which I need to generate PDFs in two languages(English + Chinese). I have set up a queue job to generate the PDFs in the background, which gets run by a corn job.
But after a minute or so, the execution stops and throws 504 Error.
I have setup
PHP max_execution_time = 600
But still, get timed out.
$products_with_pdf = ProductDetail::whereNotNull('en_document_url')->orWhereNotNull('zh_document_url')
->chunk(10, function ($products) {
RegenerateAllPDFsOnDetailsUpdate::dispatch($products);
});