Skip to main content
Gathering Interest

API support for "wait"

Related products:REST API
  • December 8, 2021
  • 4 replies
  • 74 views

Christian Dalen
Committed ⭐️⭐️

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?

4 replies

Håkon Trømborg
Practitioner ⭐️⭐️⭐️

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. 


Christian Dalen
Committed ⭐️⭐️
  • Author
  • Committed ⭐️⭐️
  • December 8, 2021

@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).


Håkon Trømborg
Practitioner ⭐️⭐️⭐️

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


Anita Hæhre
Expert ⭐️⭐️⭐️⭐️
Forum|alt.badge.img+3
  • Head of Community
  • November 2, 2022
NewGathering Interest