다음을 통해 공유


CommandJobLimits 클래스

명령 작업에 대한 제한입니다.

상속
azure.ai.ml.entities._job.job_limits.JobLimits
CommandJobLimits

생성자

CommandJobLimits(*, timeout: int | str | None = None)

키워드 전용 매개 변수

Name Description
timeout

작업이 취소되는 최대 실행 기간(초)입니다.

예제

CommandJobLimits를 사용하여 CommandJob 구성


   command_job = CommandJob(
       code="./src",
       command="python train.py --ss {search_space.ss}",
       inputs={"input1": Input(path="trial.csv")},
       outputs={"default": Output(path="./foo")},
       compute="trial",
       environment="AzureML-sklearn-1.0-ubuntu20.04-py38-cpu:33",
       limits=CommandJobLimits(timeout=120),
   )