One day after setting its all-time high temperature record, Sacramento, Calif., bested another hot weather mark, recording its 42nd day of temperatures over 100F.

The previous record for the most days with high temperatures of over 100F was 41. The rest of the week will bring a high of over 100F on Thursday and over 100F on Friday.

It was the eighth day in a row that the temperature hit 100F.

The Capitol building in Sacramento, Calif.
The Capitol building in Sacramento, Calif. (Getty Images)

California's power grid has been tested over the last week as residents try to stay cool in the heat. As a result of spiking demand for electricity, California's Independent System Operator has issued a series of warnings.

On Tuesday, the day the temperature in California's capital city hit an all-time high, the governor thanked residents for using less energy, but warned that there was a chance of power going out.

Californians have stepped up in a big way during this record heat wave, but with the hottest temperatures here now, the risk of outage is real. To reduce the strain on the grid, we need to double down on energy saving. Everyone is needed to help California continue to meet this challenge.

The burning of fossil fuels has been linked to climate change. The dangers of fires are greatly increased by the hot temperatures.

The Mosquito Fire in the Sierra Nevada foothills was one of several fires that erupted this week. Fire officials said Thursday that the fire is threatening more than 1,000 homes and structures.

The fire is burning in difficult terrain and it can be difficult to attack it.

While the hottest weather of the summer appears to have passed for much of the state, Sacramento will getrelief from triple-digit heat on Saturday, when the temperature is expected to reach just 89F.