Basically, how long does it take for electricity to determine there is a closed circuit and how does it know that the circuit exists? I'm curious to know how it knows there is a closed circuit at any length
Edit:
For clarification of the thought experiment, picture an electrical source of some type with a 1 light year wire coming from both terminals and connected in the middle. The wires are of zero resistance and capacitance.
If electrons were to start flowing immediately then information (one end of the circuit knowing the circuit is now closed at the opposite end) has obviously traveled faster than light, which is impossible.
Edit:
It has been pointed out that at least some capacitance is required. So if required, consider that as a possibility in the hypothetical setup. I'm not quite sure how that affects this situation due to my lack of knowledge. I'm trying to not get to bogged down in the setup and trying to focus more on "How does the circuit know its complete & how long does it take to determine it (particularly when the distance is long)"