I usually only work after dark when there is a serious weather deadline coming, like rain/snow. Both can impact all sorts of aspects of a project from ground to roof, even how materials and tools are staged. But sometimes it would make more sense to quit early and make other preparations instead.
I finished up a roofing job in the dark once, since rain was coming that evening. As the night went on, frost and ice crystals formed on the roof and I started to realize nature wasn't cooperating. All went well but I realized that one slip or dumb little mistake would have been dangerous and the roof would have got rained on anyway while I was in the ER. It would have seemed silly to get a major injury when a large tarp could have just bought me more time.
So when I was roofing my barn lean-to recently, I was looking at the clock and realized I could either push on into the night and maybe finish up before rain, or just put down a large tarp, make it home early for dinner, and come back the next day. After a little thought, option 2 made more sense. I think sometimes age, the appeal of a warm dinner, and safety go together.
What's not so simple are those jobs where you have to pull out a zillion tools to get working, and in those cases I am much more likely to push on. It can be a production to get setup so I take that into account.