Skip to main content
Christian Dalen
Committed ⭐️⭐️
Committed ⭐️⭐️
December 8, 2021
Gathering Interest

API support for "wait"

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

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 ⭐️⭐️⭐️
Tech Lead
December 8, 2021

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 ⭐️⭐️
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 ⭐️⭐️⭐️
Tech Lead
December 10, 2021

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

Anita Hæhre
Expert ⭐️⭐️⭐️⭐️
Head of Community
November 2, 2022
NewGathering Interest
Anita Hæhre