In my workbench I have a WKT that I send (using HTTPCaller POST) to an API. The API then runs a background model and I need to use a HTTPCaller GET to retrieve the json results via the same API. The model can take anywhere from 5 seconds to 3 minutes to run. When the model is still processing it returns a '202' status code and when it completes successfully with a '200' code. Right now, I have various decelerators, however, this slows down the entire workspace, I would like have the HTTPCaller wait or check for a 200 response and continue the rest of the workbench immediately.
Solved
How do I configure HTTPCaller (GET) to wait for a 200 response before continuing the workbench?
Best answer by takashi
Hi @cstelow , how about creating a custom transformer performing HTTP request repeatedly until status would be 200?
The attached screenshot illustrates an implementation example. Be aware that you have to set 1 to the Maximum Number of Concurrent HTTP Requests parameter in the HTTPCaller within Loop.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.