GitSCM checkout in jenkinsfile

Is it possibe to auto reconnect agents after they have been disconnected? Like have poll the jenkins instance every 10 minutes for instance , so that you dont have to manually reconnect them after every micro disconnect

Jenkins setup: [Jenkins 2.249.3]

inbond agents should by default reconnect after connection was lost.

PS: you’re using a very old Jenkins version that is over 4 years old

That seems to work if the disconnect is short like 10 or less minuts. But sometimes there is an internet outtage over the weekend or something and then they don’t reconnect automatically. Does that make sense?

Also I messed up the title for this question