The UV lamp stays on continuously. As the water flows around the lamp, it is irradiated by the ultraviolet light. The lamp slides into a quartz tube which is sealed from the water and a purple color shows through the plastic flow fittings while it is working.
eBay