Methods and systems for treating a biological fluid with light are disclosed. The methods and systems include determining the light dose being delivered to a biological fluid and adjusting the duration of a treatment or the intensity of light emitted in the event of a detected light source outage.