I am going throiugh documents of sentinel policies, So Want to know more about as how would we know if the policy check is available or it is still running when we are using api call to get policy. As we need to add this to the current groovy code in speculative stage.so yeah, the state is one thing , but I am not sure if this is the final state of the run and we can really reply on that to always safely get this policy check in the console log.
How we can ensure that if this is final status of speculative run or planned_finished attribute is final state of the run?
Anyone can please describe more on this topic?
Regrads,
Amrita