Skip to content

Commit 542b9ed

Browse files
authored
Merge pull request #103306 from lobrien/GH47415_Python_imports
Added import statement
2 parents ca6e2f0 + b68ec0f commit 542b9ed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/machine-learning/how-to-schedule-pipelines.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ pipeline_id = "aaaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
5353

5454
To run a pipeline on a recurring basis, you'll create a schedule. A `Schedule` associates a pipeline, an experiment, and a trigger. The trigger can either be a`ScheduleRecurrence` that describes the wait between runs or a Datastore path that specifies a directory to watch for changes. In either case, you'll need the pipeline identifier and the name of the experiment in which to create the schedule.
5555

56+
At the top of your python file, import the `Schedule` and `ScheduleRecurrence` classes:
57+
58+
```python
59+
60+
from azureml.pipeline.core.schedule import ScheduleRecurrence, Schedule
61+
```
62+
5663
### Create a time-based schedule
5764

5865
The `ScheduleRecurrence` constructor has a required `frequency` argument that must be one of the following strings: "Minute", "Hour", "Day", "Week", or "Month". It also requires an integer `interval` argument specifying how many of the `frequency` units should elapse between schedule starts. Optional arguments allow you to be more specific about starting times, as detailed in the [ScheduleRecurrence SDK docs](https://docs.microsoft.com/python/api/azureml-pipeline-core/azureml.pipeline.core.schedule.schedulerecurrence?view=azure-ml-py).
@@ -138,3 +145,4 @@ For more information, see:
138145
139146
* Learn more about [pipelines](concept-ml-pipelines.md)
140147
* Learn more about [exploring Azure Machine Learning with Jupyter](samples-notebooks.md)
148+

0 commit comments

Comments
 (0)