I am running a Python script as a Windows service, but it seems to be failing whenever I set it to auto-start. I believe this may be because the service uses network resources that are not yet mounted when the service starts. Is there a way I can get it to wait until startup is complete before running?
Share
Configure your Windows Service so that it has the
WorkstationService as a dependency.This means Windows won’t attempt to start your service until the appropriate resources are available.