Sometimes runs nonstop, other times cycles normally. Thermostat or contactor intermittency.
Electrical arcing can 'weld' the contactor shut, causing the outdoor unit to run constantly.
If the thermostat fails to sense the correct temperature, it won't signal the HVAC to run.