ComputeStartStopSchedule 클래스
컴퓨팅 시작 또는 중지 시나리오에 대한 일정입니다.
- 상속
-
azure.ai.ml.entities._mixins.RestTranslatableMixinComputeStartStopSchedule
생성자
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
schedule_id
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Python