File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
src/sagemaker/remote_function Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -107,8 +107,6 @@ def read_requirements(filename):
107
107
entry_points = {
108
108
"console_scripts" : [
109
109
"sagemaker-upgrade-v2=sagemaker.cli.compatibility.v2.sagemaker_upgrade_v2:main" ,
110
- "invoke-remote-function=sagemaker.remote_function.invoke_function:main" ,
111
- "bootstrap-runtime-env=sagemaker.remote_function.bootstrap:main" ,
112
110
]
113
111
},
114
112
)
Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ def _parse_agrs():
33
33
parser .add_argument ("--region" , type = str , required = True )
34
34
parser .add_argument ("--s3_base_uri" , type = str , required = True )
35
35
parser .add_argument ("--s3_kms_key" , type = str )
36
- parser .add_argument ("--dependencies" , type = str )
37
- parser .add_argument ("--job_conda_env" , type = str )
38
36
39
- return parser .parse_args ()
37
+ args , _ = parser .parse_known_args ()
38
+ return args
40
39
41
40
42
41
def _get_sagemaker_session (region ):
Original file line number Diff line number Diff line change 5
5
set -eu
6
6
7
7
printf " INFO: Bootstraping runtime environment\n"
8
- bootstrap-runtime-env " $@ "
8
+ python -m sagemaker.remote_function.bootstrap " $@ "
9
9
10
10
printf " INFO: Invoking remote function\n"
11
- invoke-remote-function " $@ "
11
+ python -m sagemaker.remote_function.invoke_function " $@ "
You can’t perform that action at this time.
0 commit comments