Skip to content

Commit

Permalink
update lp_schedules.py (#853)
Browse files Browse the repository at this point in the history
update lp_schedules.py
Specify that a specific version of the launchplan can be activated, and specify the parameter for it.
Section to show archive/deactivation of a launch plan
Link to flytectl update launchplan docs

Signed-off-by: SmritiSatyanV <[email protected]>
  • Loading branch information
SmritiSatyanV authored Aug 17, 2022
1 parent 2549a19 commit cb4319e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cookbook/core/scheduled_workflows/lp_schedules.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def positive_wf(name: str):
# Activating a Schedule
# #####################
#
# After initializing your launch plan, activate it so that the schedule runs.
# After initializing your launch plan, `activate the specific version of the launch plan <https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_launchplan.html>`__ so that the schedule runs.
#
# .. code-block:: bash
#
# flytectl update launchplan -p flyteexamples -d development {{ name_of_lp }} --activate
# flytectl update launchplan -p flyteexamples -d development {{ name_of_lp }} --version <foo> --activate

# %%
# Verify if your launch plan was activated:
Expand All @@ -114,6 +114,16 @@ def positive_wf(name: str):
#
# flytectl get launchplan -p flytesnacks -d development

# %%
# Deactivating a Schedule
# #######################
#
# You can `archive/deactivate the launch plan <https://docs.flyte.org/projects/flytectl/en/latest/gen/flytectl_update_launchplan.html>`__ to deschedule any scheduled job associated with it.
#
# .. code-block:: bash
#
# flytectl update launchplan -p flyteexamples -d development {{ name_of_lp }} --version <foo> --archive

# %%
# Platform Configuration Changes For AWS Scheduler
# ################################################
Expand Down

0 comments on commit cb4319e

Please sign in to comment.