Skip to content

Commit 0b36318

Browse files
committed
Added import statement
Closes https://github.com/MicrosoftDocs/azure-docs/issues/47415 from azureml.pipeline.core.schedule import ScheduleRecurrence, Schedule
1 parent 2654baf commit 0b36318

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 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).

0 commit comments

Comments
 (0)