Azure管道运行状态已排队

时间:2019-08-01 09:27:16

标签: azure-data-factory

我是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;
            }

1 个答案:

答案 0 :(得分:0)

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

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