在 Azure AI 中。如何增加为构建自定义 Dockerfile 环境而创建的作业的超时时间

问题描述 投票:0回答:1

使用 Dockerfile 创建自定义环境时,会创建一个作业来构建环境。该作业的创建超时时间为 1.5 小时,而构建时间则更长。这会导致 Job 被杀死。

如何更改此作业的超时时间?

命令用于创建自定义环境,使用python SDKv2:

# Create Environment from Dockerfile
from azure.ai.ml.entities import Environment, BuildContext


env_docker_context = Environment(
    build=BuildContext(path="/<Folder_Containing_Dockerfile>/"),
    name="new_env",
    description="Environment, using Dockerfile.",
)
ml_client.environments.create_or_update(env_docker_context)
azure-machine-learning-service azure-ai
1个回答
0
投票

转到为准备图像而创建的作业。

enter image description here

点击编辑并提交,然后您将在基本设置中看到一个选项 更改超时。

enter image description here

更改超时并提交作业。

© www.soinside.com 2019 - 2024. All rights reserved.