-
Notifications
You must be signed in to change notification settings - Fork 232
/
azure.ai.ml.entities.ComputeSchedules.yml
39 lines (39 loc) · 1.86 KB
/
azure.ai.ml.entities.ComputeSchedules.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
### YamlMime:PythonClass
uid: azure.ai.ml.entities.ComputeSchedules
name: ComputeSchedules
fullName: azure.ai.ml.entities.ComputeSchedules
module: azure.ai.ml.entities
inheritances:
- azure.ai.ml.entities._mixins.RestTranslatableMixin
summary: Compute schedules.
constructor:
syntax: 'ComputeSchedules(*, compute_start_stop: List[ComputeStartStopSchedule]
| None = None)'
parameters:
- name: compute_start_stop
description: Compute start or stop schedules.
isRequired: true
types:
- <xref:typing.List>[<xref:azure.ai.ml.entities.ComputeStartStopSchedule>]
- name: kwargs
description: A dictionary of additional configuration parameters.
isRequired: true
types:
- <xref:dict>
keywordOnlyParameters:
- name: compute_start_stop
isRequired: true
examples:
- "Creating a ComputeSchedules object.<!--[!code-python[Main](les\\ml_samples_compute.py\
\ )]-->\n\n<!-- literal_block {\"ids\": [], \"classes\": [], \"names\": [], \"dupnames\"\
: [], \"backrefs\": [], \"source\": \"C:\\\\hostedtoolcache\\\\windows\\\\Python\\\
\\3.11.9\\\\x64\\\\Lib\\\\site-packages\\\\py2docfx\\\\dist_temp\\\\8\\\\azure-ai-ml-1.16.1\\\
\\samples\\\\ml_samples_compute.py\", \"xml:space\": \"preserve\", \"force\": false,\
\ \"language\": \"python\", \"highlight_args\": {\"linenostart\": 1}, \"linenos\"\
: false} -->\n\n````python\n\n from azure.ai.ml.constants import TimeZone\n \
\ from azure.ai.ml.entities import ComputeSchedules, ComputeStartStopSchedule, CronTrigger\n\
\n start_stop = ComputeStartStopSchedule(\n trigger=CronTrigger(\n \
\ expression=\"15 10 * * 1\",\n start_time=\"2022-03-10 10:15:00\"\
,\n end_time=\"2022-06-10 10:15:00\",\n time_zone=TimeZone.PACIFIC_STANDARD_TIME,\n\
\ )\n )\n compute_schedules = ComputeSchedules(compute_start_stop=[start_stop])\n\
\n\n ````\n"