This repository was archived by the owner on Sep 20, 2025. It is now read-only.
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 2121DMAA_DEFAULT_PROFILE_PARH = "~/.dmaa_default_profile"
2222
2323MODEL_TAG_PATTERN = r'^[a-z0-9]([a-z0-9-_]{0,61}[a-z0-9])?$'
24+
25+ LOCAL_REGION = "local"
2426# DMAA_USE_NO_PROFILE_CHOICE = "Don't set"
Original file line number Diff line number Diff line change 1111 ENV_STACK_NAME ,
1212 MODEL_DEFAULT_TAG ,
1313 VERSION ,
14+ LOCAL_REGION
1415)
1516from dmaa .models import Model
1617from dmaa .models .utils .constants import FrameworkType , ServiceType ,InstanceType
@@ -311,7 +312,7 @@ def deploy_local(
311312 f" --service_type { service_type } "
312313 f" --backend_type { engine_type } "
313314 f" --framework_type { framework_type } "
314- f" --region 'local '"
315+ f" --region '{ LOCAL_REGION } '"
315316 f" --extra_params '{ extra_params } '"
316317 )
317318 logger .info (f"pipeline cmd: { pipeline_cmd } " )
Original file line number Diff line number Diff line change 77import logging
88from concurrent .futures import as_completed ,ProcessPoolExecutor
99from dmaa .models import Model
10- from dmaa .constants import MODEL_DEFAULT_TAG
10+ from dmaa .constants import MODEL_DEFAULT_TAG , LOCAL_REGION
1111from dmaa .models .utils .constants import FrameworkType ,ServiceType ,InstanceType
1212from utils .common import str2bool
1313from dmaa .utils .aws_service_utils import check_cn_region
@@ -217,7 +217,7 @@ def download_s5cmd():
217217 t0 = time .time ()
218218 start_time = time .time ()
219219 args = parse_args ()
220- if not check_cn_region (args .region ):
220+ if not ( check_cn_region (args .region ) or args . region == LOCAL_REGION ):
221221 download_s5cmd ()
222222 extra_params = args .extra_params
223223 for k ,v in extra_params .items ():
You can’t perform that action at this time.
0 commit comments