Share via


ComputeStartStopSchedule 클래스

컴퓨팅 시작 또는 중지 시나리오에 대한 일정입니다.

상속
azure.ai.ml.entities._mixins.RestTranslatableMixin
ComputeStartStopSchedule

생성자

ComputeStartStopSchedule(*, trigger: CronTrigger | RecurrenceTrigger | None = None, action: ComputePowerAction | None = None, state: ScheduleStatus = ScheduleStatus.ENABLED, **kwargs: Any)

매개 변수

Name Description
trigger
필수

일정의 트리거입니다.

action
필수

컴퓨팅 전원 작업입니다.

state
필수
<xref:azure.ai.ml.entities.ScheduleState>

일정의 상태입니다.

kwargs
필수

추가 구성 매개 변수의 사전입니다.

키워드 전용 매개 변수

Name Description
trigger
필수
action
필수
state
기본값: ScheduleStatus.ENABLED

예제

ComputeStartStopSchedule 개체 만들기


   from azure.ai.ml.constants import TimeZone
   from azure.ai.ml.entities import ComputeSchedules, ComputeStartStopSchedule, CronTrigger

   start_stop = ComputeStartStopSchedule(
       trigger=CronTrigger(
           expression="15 10 * * 1",
           start_time="2022-03-10 10:15:00",
           end_time="2022-06-10 10:15:00",
           time_zone=TimeZone.PACIFIC_STANDARD_TIME,
       )
   )
   compute_schedules = ComputeSchedules(compute_start_stop=[start_stop])


특성

provisioning_state

일정 프로비저닝 상태입니다.

반환

형식 Description

일정 프로비저닝 상태입니다.

schedule_id

일정 ID입니다.

반환

형식 Description

일정 ID입니다.