API support for "wait"

Related products: API and SDKs

I have noticed that the SDK now has a “wait” flag when triggering a transformation. This feature is practical when triggering from a integration tool where you wish to trigger something else when the transformation is done. The problem for me is that I only use the API, and the API does not support this feature as of now. Is there a plan to have this feature made available in the API soon as well?

Hi Christian, and thanks for your question!
Short answer: no, and probably never.


The CDF API doesn’t support very long running requests, currently API requests will be cut after 90s (and this is unlikely to change). The wait functionality in the SDK is implemented using polling of the transformation run status, so it gets around the 90s limit in that way. However, we can’t implement that as part of the API. 


@Håkon Trømborg thanks for a quick reply. Maybe a async solution with a callback url would be useful?

I am not able to utilize a callback url in any case (now), but I understood that a workaround is to poll on the status of the transformation run and wait until it returns with "status": "Completed" (Also, off course other completed statuses as “Failed” with appropriate handling).


A callback URL is a possible solution, we’ll add it to our backlog for consideration :)


NewGathering Interest