Provided there isn't any disruption/loss of connectivity on the session (e.g. Platform or Desktop connection issues), or any credential issues (e.g. an attempt to login again with the same credentials) a script should continue to run indefinitely.
Note that if web socket connection (i.e. streaming data) is closed for any reason, requests to any RDP endpoint should still available.
In the future, we plan to enhance the RDP Library to attempt connection recovery in the case of a disruption etc.