2323from sagemaker .train .aws_batch .boto_client import get_batch_boto_client
2424
2525
26- def submit_service_job (
26+ def _submit_service_job (
2727 training_payload : Dict ,
2828 job_name : str ,
2929 job_queue : str ,
@@ -71,7 +71,7 @@ def submit_service_job(
7171 return client .submit_service_job (** payload )
7272
7373
74- def describe_service_job (job_id : str ) -> Dict :
74+ def _describe_service_job (job_id : str ) -> Dict :
7575 """Batch describe_service_job API helper function.
7676
7777 Args:
@@ -119,7 +119,7 @@ def describe_service_job(job_id: str) -> Dict:
119119 return client .describe_service_job (jobId = job_id )
120120
121121
122- def terminate_service_job (job_id : str , reason : Optional [str ] = "default terminate reason" ) -> Dict :
122+ def _terminate_service_job (job_id : str , reason : Optional [str ] = "default terminate reason" ) -> Dict :
123123 """Batch terminate_service_job API helper function.
124124
125125 Args:
@@ -132,7 +132,7 @@ def terminate_service_job(job_id: str, reason: Optional[str] = "default terminat
132132 return client .terminate_service_job (jobId = job_id , reason = reason )
133133
134134
135- def list_service_job (
135+ def _list_service_job (
136136 job_queue : str ,
137137 job_status : Optional [str ] = None ,
138138 filters : Optional [List ] = None ,
@@ -161,7 +161,7 @@ def list_service_job(
161161 next_token = part_of_jobs .get ("nextToken" )
162162 yield part_of_jobs
163163 if next_token :
164- yield from list_service_job (job_queue , job_status , filters , next_token )
164+ yield from _list_service_job (job_queue , job_status , filters , next_token )
165165
166166
167167def __merge_tags (batch_tags : Optional [Dict ], training_tags : Optional [List ]) -> Optional [Dict ]:
0 commit comments