AWS Personalize SDK - CreateSolutionVersion command: Callback hook for when status changes to 'Active'

0

Is there a way that I can provide a callback function that executes when a solution version changes state to 'active' ?

Currently, my system successfully creates a new solution version, but I want to automatically do additional processing elsewhere when the solution version is active.

I have looked over the following documentation articles:

The only way that I can currently think about solving this is using setTimeout (for let's say 15 minutes), calling DescribeSolutionVersion, if status is active -> doAdditionalProcessing() else -> setTimeout for another 15 minutes.

Is there a better way of going about this? I am new to AWS I apologize if this is trivial

preguntada hace 2 años222 visualizaciones
1 Respuesta
1
Respuesta aceptada

Currently there is not a built-in way to register a callback with asynchronous Personalize APIs such as CreateSolutionVersion. The typical integration pattern to detect when a solution version becomes "active" is to poll the DescribeSolutionVersion API, as you mentioned. Wrapping this processing in AWS Step Functions is a common way of encapsulating this functionality.

The Maintaining Personalized Experiences with Machine Learning solution provides the ability to trigger and schedule workflows around Personalize processes such as importing data, creating solutions versions, updating campaigns, running batch jobs, etc. It also fires events to Amazon EventBridge when asynchronous events complete (i.e. become "active") which you can subscribe to to trigger your own workflows.

AWS
James_J
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas