File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 21
21
DMAA_DEFAULT_PROFILE_PARH = "~/.dmaa_default_profile"
22
22
23
23
MODEL_TAG_PATTERN = r'^[a-z0-9]([a-z0-9-_]{0,61}[a-z0-9])?$'
24
+
25
+ LOCAL_REGION = "local"
24
26
# DMAA_USE_NO_PROFILE_CHOICE = "Don't set"
Original file line number Diff line number Diff line change 11
11
ENV_STACK_NAME ,
12
12
MODEL_DEFAULT_TAG ,
13
13
VERSION ,
14
+ LOCAL_REGION
14
15
)
15
16
from dmaa .models import Model
16
17
from dmaa .models .utils .constants import FrameworkType , ServiceType ,InstanceType
@@ -311,7 +312,7 @@ def deploy_local(
311
312
f" --service_type { service_type } "
312
313
f" --backend_type { engine_type } "
313
314
f" --framework_type { framework_type } "
314
- f" --region 'local '"
315
+ f" --region '{ LOCAL_REGION } '"
315
316
f" --extra_params '{ extra_params } '"
316
317
)
317
318
logger .info (f"pipeline cmd: { pipeline_cmd } " )
Original file line number Diff line number Diff line change 7
7
import logging
8
8
from concurrent .futures import as_completed ,ProcessPoolExecutor
9
9
from dmaa .models import Model
10
- from dmaa .constants import MODEL_DEFAULT_TAG
10
+ from dmaa .constants import MODEL_DEFAULT_TAG , LOCAL_REGION
11
11
from dmaa .models .utils .constants import FrameworkType ,ServiceType ,InstanceType
12
12
from utils .common import str2bool
13
13
from dmaa .utils .aws_service_utils import check_cn_region
@@ -217,7 +217,7 @@ def download_s5cmd():
217
217
t0 = time .time ()
218
218
start_time = time .time ()
219
219
args = parse_args ()
220
- if not check_cn_region (args .region ):
220
+ if not ( check_cn_region (args .region ) or args . region == LOCAL_REGION ):
221
221
download_s5cmd ()
222
222
extra_params = args .extra_params
223
223
for k ,v in extra_params .items ():
You can’t perform that action at this time.
0 commit comments