AutoMLJobStatus event EventBridge

0

I am creating an auto ML Job using API and I would like to trigger a lambda when this job is complete using Event Bridge. I am logging all the aws.sagemaker events and I don't seem to find a specific event for when the auto ML job is completed like how I get when I use the describe auto ml job endpoint where I get status like so "AutoMLJobStatus": "Completed", "AutoMLJobSecondaryStatus": "Completed"

2 Answers
0

One way is to use S3 trigger when AutoML job saves artifacts to a specified S3 bucket at job completion: https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html

There is also a processing job state change in SageMaker that you can connect with EventBridge as well: https://docs.aws.amazon.com/sagemaker/latest/dg/automating-sagemaker-with-eventbridge.html#processing-job-state

AWS
answered 19 days ago
profile picture
EXPERT
reviewed 18 days ago
  • I am exploring a solution by processing all the event bridge events from source aws.sagemaker, this lambda requests the API to describe the auto ML job to understand if "AutoMLJobStatus": "Completed" , but the last event I receive I still do not have the completed status. I tried with only processing job state and I still can't get the final event when the auto ml is completed. I wish I had a specific event for autopilot since we have that status on describe request api.

0

The solution for me was to trigger the lambda for all event sourced from sagemaker, and describe the auto ml job to check if it is completed. I had to add a sleep of 10 seconds when I receive the last event otherwise the auto ml job is not yet on a completed state. Hope AWS can create this event in the future.

answered 18 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions