Azure DevOps 代理性能

标签 azure azure-devops

我有一个 Azure Devops 服务(目前我有两个项目,只有一个托管代理),并且我在构建定义中执行了 NPM 步骤,该步骤执行安装命令。构建 npm run build --prod 已减慢到一个多小时。

我认为,问题出在 Azure 代理

您能告诉我如何调整该代理或清除该代理的缓存吗?

编辑:

在我的本地环境中,构建需要 20 分钟以上。

在 Azure Devops Services 中,管道在 1 小时后失败。

这是日志:

    ##[warning]Ubuntu-latest pipelines will use Ubuntu-20.04 soon. For more details, see https://github.com/actions/virtual-environments/issues/1816
    ,##[error]The job running on agent Hosted Agent ran longer than the maximum time of 60 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134
    Pool: Azure Pipelines


> ng build --prod --aot --sm

##[debug]Re-evaluate condition on job cancellation for step: 'Build Solution'.
##[debug]Started cancellation of executing script
##[debug]Exit code null received from tool '/bin/bash'
##[error]The operation was canceled.
##[debug]System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync()
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)

谢谢

最佳答案

最近发生了 Azure DevOps 可用性降级事件,可能会影响这些服务,现已解决。这可能会影响欧洲的客户。如果您想了解更多信息,请点击:https://status.dev.azure.com/_event/228998388

We are noticing increased load across Europe region and we are trying to increase capacity to handle additional load. We will continue to monitor and update once the issue mitigates.

enter image description here

关于Azure DevOps 代理性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66323001/

相关文章:

azure - 如何创建逻辑应用程序将文件从一个容器动态复制到另一个存储 blob 容器?

postgresql - 无法创建 PostgreSQL super 用户角色来安装和运行应用程序

json - 从逻辑应用程序中的json获取特定值

asp.net - Azure 网站 301 重定向 - 我将其放在哪里?

azure - 部署到 Azure 时出现 PremiumV2 未找到错误

php - 词栅栏 |微软Azure

c# - 如何将以下 JSON 传递到带有或不带有 Javascript 序列化器的 C# 修补方法

Azure 逻辑应用程序 : "The EXECUTE permission was denied on the object ' MyProcName', 数据库 'dbName' ,架构 'dbo' 。”

android - 如何为Microsoft Visual Studio Team创建JaCoCo xml报告和xml摘要?

git - Visual Studio-Azure 开发人员 : failed to push the branch to the remote repository