Angina pectoris usually happens when a person exerts a lot of physical effort for a few minutes. It goes away when the person rests or takes medication. Sometimes it can happen at rest.