The 'flickering' tells the tale. The circuit is losing its supply-power every time it trys to kick-in and send power to the glowplugs....then repeats over and over and over.
I would check for poor-connections on both the positive and negative portions of the circuit. Also look for wires which are turning to green powder on the inside.