gpt4 book ai didi

c# - 无法将 CloudTask 添加到 Azure Batch

转载 作者:行者123 更新时间:2023-12-03 01:54:13 25 4
gpt4 key购买 nike

尝试添加云任务时出现异常,宽度描述“远程服务器返回错误:(400) 错误请求。”,在这一行:

_job.AddTask(task);

此方法:

public static void AddTask(string taskId, string commandLine, IEnumerable<string> files)
{
var resourceFiles = files.Select(file => new ResourceFile(file, file)).Cast<IResourceFile>().ToList();
var task = new CloudTask(taskId, commandLine) {ResourceFiles = resourceFiles};
_job.AddTask(task);
}

最佳答案

下载 Azure Batch Explorer 应用程序,并将你的帐户连接到它。这将向您显示正在运行的池、工作项和作业。资源管理器将帮助您查看作业是否正在运行。另外,请确保您添加的每个任务都有唯一的名称。

关于c# - 无法将 CloudTask 添加到 Azure Batch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27881065/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com