If the light is still on but the compressor isn't running then your thermostat has gone, if the light is on & the compressor is running, then feel the compressor with your hand, if it is really hot then you have a system fault & will need a vacuum & regas by a qualified system engineer.
The washer man
July 2010