-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
component: trainingRelates to the SageMaker Training PlatformRelates to the SageMaker Training Platformtype: bug
Description
Describe the bug
Can't get list of training jobs using NameContains argument using list_training_jobs
function.
It returns training jobs without this argument properly.
To reproduce
import boto3
import sagemaker
sess = sagemaker.Session()
sm_client = sess.sagemaker_client
name_contains = 'something'
response = sm_client.list_training_jobs(
# NextToken='string',
MaxResults=10,
# CreationTimeAfter=datetime(2023, 12, 20),
# CreationTimeBefore=datetime(2023, 12, 21),
LastModifiedTimeAfter=datetime(2024, 2, 1),
# LastModifiedTimeBefore=datetime(2023, 12, 21),
NameContains=name_contains,
StatusEquals='Completed',
SortBy='CreationTime',
SortOrder='Descending',
# WarmPoolStatusEquals='Available'|'Terminated'|'Reused'|'InUse'
)
returns empty list
Expected behavior
Should return list of training jobs with specified name suffix.
Screenshots or logs
System information
A description of your system. Please provide:
- SageMaker Python SDK version: 2.203.1
- Framework name (eg. PyTorch) or algorithm (eg. KMeans):
- Framework version:
- Python version: 3.11.7
- CPU or GPU: both
- Custom Docker image (Y/N): N
Metadata
Metadata
Assignees
Labels
component: trainingRelates to the SageMaker Training PlatformRelates to the SageMaker Training Platformtype: bug