diff --git a/src/Conversions/Commands/RegenerateCommand.php b/src/Conversions/Commands/RegenerateCommand.php index 50f583019..34f8abaaf 100644 --- a/src/Conversions/Commands/RegenerateCommand.php +++ b/src/Conversions/Commands/RegenerateCommand.php @@ -46,6 +46,10 @@ public function handle(MediaRepository $mediaRepository, FileManipulator $fileMa $progressBar = $this->output->createProgressBar($mediaFiles->count()); + if (config('media-library.queue_connection_name') === 'sync') { + set_time_limit(0); + } + $mediaFiles->each(function (Media $media) use ($progressBar) { try { $this->fileManipulator->createDerivedFiles(