When do you know to leave

For those you have left your partners when did you know it was time to leave? What brought you to do it? Just curious as sometimes I feel like I just can’t be in my relationship anymore and I always say next time I’ll leave well next time comes and I don’t ever have the courage to do it because part of me still wants to stay.