I have 2 API calls say FirstApi and SecondApi. First Api provides output with 3 different status(complete,failed, inprogress).
When the user redirects to the page on Complete state and Failed state both API needs to be called once.
when status is Inprogress the SecondApi needs to be called every 30 seconds. The thing to be noted is that FirstApi status keeps on changing is that first it will be in progress for around 40 mins then status changes . so until the status changes from inprogress to comple we need to keep on calling on interval based as output of second APi is depent on the first api. tried setinterval did not work used rxjs did not work. Please provide the solutions.
I tried using setinterval, rxjs interval. I expect second api need to be called every 30 seconds until the first api status changes to complete from inprogress.
user24243132 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.