你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ComputeSchedules Class
Compute schedules.
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinComputeSchedules
Constructor
ComputeSchedules(*, compute_start_stop: List[ComputeStartStopSchedule] | None = None)
Parameters
Name | Description |
---|---|
compute_start_stop
Required
|
Compute start or stop schedules. |
kwargs
Required
|
A dictionary of additional configuration parameters. |
Keyword-Only Parameters
Name | Description |
---|---|
compute_start_stop
Required
|
|
Examples
Creating a ComputeSchedules object.
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])