Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schedule.create() on a pipeline immediately runs the pipeline #429

Open
danieltorzalaonsemi opened this issue Apr 8, 2022 · 0 comments
Open

Comments

@danieltorzalaonsemi
Copy link

Describe the bug
When I run Schedule.create() on a pipeline it immediately runs the pipeline.

To Reproduce
Create a Schedule using Schedule.create() with all the parameters of a currently existing pipeline and the pipeline will start running an experiment for that pipeline immediately.

Expected behavior
The schedule should be created but not run until the day found in week_days param and the time found in time_of_day param.

Here is the code I am using to create the bug:

from azureml.pipeline.core import TimeZone, PipelineEndpoint
from azureml.pipeline.core.schedule import ScheduleRecurrence, Schedule
from azureml.core import Workspace
TIMEZONE = TimeZone.PacificStandardTime
ws = Workspace.from_config()
frequency="Week"
interval=1
week_days=["Monday"]
time_of_day="4:50"
name="my_project_name_schedule"
s="my_project_name"
description = 'Run '+s+' every '+",".join(week_days)+' at '+time_of_day
pipeline_endpoint = PipelineEndpoint.get(workspace=ws, name=s).get_pipeline()

recurrence = ScheduleRecurrence(
frequency=frequency,
week_days=week_days,
interval=interval,
time_of_day=time_of_day,
time_zone=TIMEZONE)
recurring_schedule = Schedule.create(ws,
name=name,
description=description,
pipeline_id=pipeline_endpoint._published_pipeline_id,
experiment_name=s,
recurrence=recurrence)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant