@@ -13,7 +13,6 @@ def __init__(self, manager, config, timer, base_dir, backup_dir, **kwargs):
1313 super (S3 , self ).__init__ (self .__class__ .__name__ , manager , config , timer , base_dir , backup_dir , ** kwargs )
1414 self .remove_uploaded = self .config .upload .remove_uploaded
1515 self .retries = self .config .upload .retries
16- self .thread_count = self .config .upload .threads
1716 self .region = self .config .upload .s3 .region
1817 self .bucket_name = getattr (self .config .upload .s3 , 'bucket_name' , None )
1918 self .bucket_prefix = getattr (self .config .upload .s3 , 'bucket_prefix' , None )
@@ -25,6 +24,7 @@ def __init__(self, manager, config, timer, base_dir, backup_dir, **kwargs):
2524 self .s3_acl = self .config .upload .s3 .acl
2625 self .key_prefix = base_dir
2726
27+ self .threads (self .config .upload .threads )
2828 self ._pool = None
2929
3030 if self .region is None :
@@ -35,7 +35,7 @@ def __init__(self, manager, config, timer, base_dir, backup_dir, **kwargs):
3535 self .region ,
3636 self .access_key ,
3737 self .secret_key ,
38- self .thread_count ,
38+ self .threads () ,
3939 self .remove_uploaded ,
4040 self .chunk_size ,
4141 self .s3_acl
@@ -59,7 +59,7 @@ def run(self):
5959 self .timer .start (self .timer_name )
6060 logging .info ("Starting AWS S3 upload to %s (%i threads, %imb multipart chunks, %i retries)" % (
6161 self .bucket_name ,
62- self .thread_count ,
62+ self .threads () ,
6363 self .chunk_size_mb ,
6464 self .retries
6565 ))
0 commit comments