If i wanted to loop an api which is catching to see if a job = success and then if job = sucess move to next node how do i do that