I spent 6~8 weeks trying to figure out what was going on. I never imagined it was AntiVirus in that sometimes it worked, sometimes it didn't. I'm not a security person but if an AntiVirus says this exe is bad, why wouldn't it always be bad?
From Task Scheduler we are executing batch files (.bat) that contain something like this:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" "c:\my_source_code\main.py"
Thus, if one clones environments then the cloned python.exe will be located elsewhere and I presume will need to be whitelisted too. Carmen, I hope it turns out well.