Skip to main content
Gathering Interest

API support for "wait"

Related products:API and SDKs

Christian Dalen
Active

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?

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
Active

@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
Seasoned Practitioner
Forum|alt.badge.img+1
  • Head of Academy and Community
  • November 2, 2022
NewGathering Interest


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings