Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Save and Access Metadata Information About Your Processing Job

Focus mode
Save and Access Metadata Information About Your Processing Job - Amazon SageMaker AI

To save metadata from the processing container after exiting it, containers can write UTF-8 encoded text to the /opt/ml/output/message file. After the processing job enters any terminal status ("Completed", "Stopped", or "Failed"), the "ExitMessage" field in DescribeProcessingJob contains the first 1 KB of this file. Access that initial part of file with a call to DescribeProcessingJob, which returns it through the ExitMessage parameter. For failed processing jobs, you can use this field to communicate information about why the processing container failed.

Important

Don't write sensitive data to the /opt/ml/output/message file.

If the data in this file isn't UTF-8 encoded, the job fails and returns a ClientError. If multiple containers exit with an ExitMessage, the content of the ExitMessage from each processing container is concatenated, then truncated to 1 KB.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.