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:
Guo Xiang Tan
2018-07-09 10:30:18 +08:00
parent 9948f57a99
commit 72a3457379
3 changed files with 3 additions and 3 deletions

View File

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