Open ovaar opened 1 month ago
Hi @ovaar, thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.
Hi @ovaar! I tried to reproduce this issue using a Python script that executes a long-running task, but did not have success both with the agent version v3.236.1 and the latest one. Could you please provide more details on what your build.py script looks like? Also, it would be great if you could provide the Worker file's log for a pipeline run with system.debug
variable enabled
What happened?
While executing long-running python tasks tasks using PythonScript@0 or just bash, which invokes python, the agent seems to lose connection to the host, maybe because it didn't receive enough messages in the stdout/stderr to feed the watchdog, resulting in a broken connection that makes the build freeze?
Running the (long running) build scripts as shown above, results in Python using buffered streams for stdout and stderr. Setting the PYTHONUNBUFFERED resolved the issue.
Versions
Azure Devops version 3.236.1 / Windows 10
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 10
Version controll system
No response
Relevant log output