If sparking doesn't stop when oven burner is lit; check that the oven ignition electrode (spark tip) is immersed in the burner flame. If it isn't; then is its position adjustable? or has it partly burnt away, and will need replacing? If spark tip is OK, then the Spark Generator is probably faulty!
Good luck.
Amateur Physicist, March 2008