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

已提問 2 年前檢視次數 222 次
1 個回答
1
已接受的答案

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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南