Aracılığıyla paylaş


CommandJobLimits Sınıf

Komut İşleri için Sınırlar.

Devralma
azure.ai.ml.entities._job.job_limits.JobLimits
CommandJobLimits

Oluşturucu

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

Yalnızca Anahtar Sözcük Parametreleri

Name Description
timeout

İşin iptal edilmesinden sonra saniye cinsinden en uzun çalıştırma süresi.

Örnekler

CommandJobLimits ile CommandJob yapılandırma.


   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),
   )