Share via


ComputeSchedules Class

Compute schedules.

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
ComputeSchedules

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