mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Bump discourse_image_optim
which uses a global timeout.
Our previous solution has the timeout set at the worker level which means the total timeout would be X timeout secs * N number of workers.
This commit is contained in:
@ -253,7 +253,7 @@ class UploadCreator
|
||||
OptimizedImage.ensure_safe_paths!(@file.path)
|
||||
FileHelper.optimize_image!(@file.path)
|
||||
extract_image_info!
|
||||
rescue ImageOptim::Worker::TimeoutExceeded
|
||||
rescue ImageOptim::TimeoutExceeded
|
||||
Rails.logger.warn("ImageOptim timed out while optimizing #{@filename}")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user