I want to repeat the operation getRunDetailsStaus() until the status is done. So I put the condition in .then() handler, and I called recursive the
getRunDetailsStaus()
.then()