-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: PowerShell task startup too slow #20741
Comments
@dlaw1912 Verified the error log which you have shared and found it got stuck before it started the task execution. It's an issue with agent which you have used for it as it got stuck after verifying the space on the agent. It's not a task issue and issue from agent. Please check what happened during that duration. Please also let us know did you faced the issue again or it has happened only once. As you were using self hosted agent, please verify from your end on the agent. 2024-12-18T05:16:54.8376684Z ##[debug]Agent running environment resource - Disk:C:\ available:35305.00MB out of 65913.00MB, Memory: used 22MB out of 2588MB, CPU: usage 0.83 |
@dlaw1912 Any update on this request |
1 similar comment
@dlaw1912 Any update on this request |
It has previously happened multiple times on multiple agents, and there is always space on the agent host. I've run Windows updates on the agent hosts (these are Hyper-V hosts reset to the same checkpoint for every run), and the pipeline had been running fine for about a week, but it has now failed overnight again. The only difference I can see last night is another UI agent was running at the same time on a separate Hyper-V host, but both hosts exist on the same computer, but each should have sufficient resources to run. |
@dlaw1912 Thanks for the confirmation, i hope the issue is not from task side and that was from the agent side. Even, the earlier issue had occurred due to an agent issue, not from task side. Could you please confirm whether we can proceed with closure of it |
New issue checklist
Task name
PowerShell
Task version
2.247.1
Issue Description
On our self-hosted machine/agents, there are times when just initialising the PowerShell tasks takes more than a few seconds. Most recently, it took half an hour, so the overall pipeline failed as it exceeded the maximum time. it isn't consistently the same task in the pipeline, but it is only ever a PowerShell task.
This only occurs on interactive agents used for UI tests, agents run as a service use the same scripts but don't suffer the same issue.
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11
Relevant log output
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: