A gateway keeps what happened to a job it was handed (started, finished, failed) and re-sends it on every connection until the cloud acknowledges it, so an outcome reached while the cloud was unreachable still arrives.
A gateway keeps what happened to a job it was handed (started, finished, failed) and re-sends it on every connection until the cloud acknowledges it, so an outcome reached while the cloud was unreachable still arrives.