We have a scheduled task machine with Pro installed to run python 3.x.
Issue: if a user is not signed in (connected to portal), our python 3.x scripts to not run and we are not getting alerted via our error logging.
Is there a way to be notified that the user has logged out? We have enabled offline mode which helps but sometimes the user still gets signed out (for instance when renew our license) . Is there a arcpy function that will alert us if Pro is not connected to a Portal?