Small Engine Troubleshooting Problems? Ask a Mechanic Now.
Engine model and number? When it quits, have a spare spark plug and remove the spark plug wire, attach the spare plug, and with it grounded, see if you have spark.
If it has spark, it has to be loosing fuel.
Does the carburetor have an electric solenoid in the base of it?