From 42866e7e0e2c5445158a4b838eadc790d85ca0e8 Mon Sep 17 00:00:00 2001 From: Hiro Asari Date: Tue, 20 Mar 2018 15:12:05 -0400 Subject: [PATCH] Define Aws constants up front Aws and multithreading may not play well at all times. See https://aws.amazon.com/blogs/developer/threading-with-the-aws-sdk-for-ruby/ for more details. --- lib/dpl/provider/s3.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dpl/provider/s3.rb b/lib/dpl/provider/s3.rb index aafdaa23f..451928783 100644 --- a/lib/dpl/provider/s3.rb +++ b/lib/dpl/provider/s3.rb @@ -2,6 +2,8 @@ require 'aws-sdk' require 'mime-types' +Aws.eager_autoload! + module DPL class Provider class S3 < Provider