spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.78k stars 1.08k forks source link

Do not limit the maximum execution time if the queue connection is "sync" #3618

Closed VGirol closed 6 months ago

VGirol commented 6 months ago

When regenerating the conversions and if the queue connection is set to "sync", the jobs are not handled "asynchronously". So the execution time can be very long depending on the number of medias to handle. And in some cases, the script reached the maximum execution time defined in php.ini and exit with an error code.

This PR disable the maximum execution time if the queue connection is "sync".

VGirol commented 6 months ago

Thanks!

Could you remove all code style changes?

I'm sorry. I didn't see that code style had changed.

freekmurze commented 6 months ago

Thank you!