Connection to Atlas from scheduled or always-on task

Hi, The scripts that I need to run connect to a mongodb on the official server. They are working flawlessly with the console. (But the console get randomly restarted sometime and need to be manually opened). But in the scheduled or always-on task I get a DNS error even if the correct DNS library is installed.

Let us have a look at this issue during week.

Perfect, thank you