首页 > 解决方案 > Azure 管道运行状态排队

问题描述

我是 Azure 环境的新手。我已经使用 .net 核心编写了一些代码,这些代码使用 Azure 数据工厂启动 Azure 管道。从我的本地尝试时管道运行状态的状态始终为成功。我在天蓝色环境中部署了代码。当尝试从 azure 服务器启动管道时,状态总是排队。什么是排队状态以及我必须处理它。有人可以帮忙吗?我是否需要更改 azure 中的任何设置,以便管道运行成功

            AuthenticationContext context = new AuthenticationContext("https://login.windows.net/" + tenantID);
            ClientCredential cc = new ClientCredential(applicationId, authenticationKey);
            AuthenticationResult result = context.AcquireTokenAsync("https://management.azure.com/", cc).Result;
            ServiceClientCredentials cred = new TokenCredentials(result.AccessToken);
            var client = new Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient(cred) { SubscriptionId = subscriptionId };

            CreateRunResponse runResponse = client.Pipelines.CreateRunWithHttpMessagesAsync(resourceGroup, dataFactoryName, pipelineName).Result.Body;
            string RunId = runResponse.RunId;
            PipelineRun pipelineRun;
            while (true)
            {
                pipelineRun = client.PipelineRuns.Get(resourceGroup, dataFactoryName, runResponse.RunId);
                if (pipelineRun.Status == "InProgress")
                    System.Threading.Thread.Sleep(15000);
                else
                    break;
            }

标签: azure-data-factory

解决方案


您应该尝试查看 IR 的诊断日志,它确实有有价值的信息,应该会有所帮助。

导航到 IR -> 诊断日志或打开事件查看器 -> 应用程序和服务日志 ->


推荐阅读