File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class Env:
13
13
# NOTE: there is a limitation on minio that
14
14
# the multipart number is 10000. so we set
15
15
# the chunk_size as 20MB -> total 200GB
16
- chunk_size = 1024 * 1024 * 20 # MB
16
+ chunk_size = ConfigClass . upload_chunk_size # MB
17
17
resilient_retry = 3
18
18
resilient_backoff = 1
19
19
resilient_retry_interval = 1 # seconds
@@ -31,7 +31,7 @@ class Env:
31
31
# set hard limit for pending jobs, otherwise cli will consume all memory
32
32
# to cache jobs. If later on the speed of chunk deliver become faster, we
33
33
# can increase the concurrency number.
34
- num_of_jobs = 20
34
+ num_of_jobs = ConfigClass . concurrent_job_limit
35
35
36
36
github_url = 'PilotDataPlatform/cli'
37
37
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ class Settings(BaseSettings):
37
37
apikey_endpoint : str = 'api-key'
38
38
39
39
upload_batch_size : int = 100
40
+ concurrent_job_limit : int = 10
41
+ upload_chunk_size : int = 1024 * 1024 * 20 # 20MB
40
42
41
43
def __init__ (self , ** data ):
42
44
super ().__init__ (** data )
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " app"
3
- version = " 3.12.0 "
3
+ version = " 3.12.1 "
4
4
description = " This service is designed to support pilot platform"
5
5
authors = [" Indoc Systems" ]
6
6
You can’t perform that action at this time.
0 commit comments