There's a powerful sci fi short story I read in an anthology quite a while ago (I believe called The Flying Dutchman) describing a crewless bomber being repaired, fueled, taking off, bombing its target, landing, and then doing the same thing again. As it describes this repetition, you slowly realize that humanity has long since been wiped out and the bombing runs are automated systems repeating themselves. (That's my memory of the story, anyhow, I read it in the 80's :) ).
(Edit: found it, "Flying Dutchman" by Ward Moore, it's from the 50's and you can find its text online with those terms)
Thanks for linking these! They indeed capture that same concept and are quite beautiful, in a haunting sense. In this case automated technology seems to inhabit the same space as ghosts in a non-sci-fi setting. At least the type of ghost that re-enacts some event over and over. (The title of the short story I mentioned is an overt reference to one of those stories). I wonder what added meaning the technological element conveys, e.g. the difference between a story about ghostly sailors re-entering naval combat ad infinitum vs. a story about robotic pilots continuing a physical war patterned by their long dead designers. Both are a form of haunting.
(Edit: found it, "Flying Dutchman" by Ward Moore, it's from the 50's and you can find its text online with those terms)