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 Antworten
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
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
  • 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.

beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen