Check if AI is blocked by another AI and stop pathfinding

I have 2 AI going to the same destination. I’ve used local avoidance to keep them from pushing against each other halfway over the destination. But now one reaches the destination and the other stands beside. Is there a smart way to check that the second AI has any way to get to the destination?

Hi

The current beta (see https://www.arongranberg.com/astar/download) has a new option for the movement scripts called ‘Stop When Destination Is Crowded’ which will automatically detect if there are other local avoidance agents around the destination and then stop if it cannot get much closer.