Gas Shuts off

When turning on dryer, the ignitor is glowing, gas kicks on, but then shuts off. It spins and keeps going, but with no heat.