What jobs did Ancient Egypt priests do?

Sometimes the priests worked as judges or teachers, but their main job was to stay in the temple 3 months out of every year, in which they wouldn't leave the temple.