Skip to content

Commit 90a1131

Browse files
cosmicBboyAtharva1723
authored andcommitted
add FlyteRemote.deactivate_launchplan (flyteorg#3264)
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com> Signed-off-by: Atharva <atharvakulkarni172003@gmail.com>
1 parent cfa3a97 commit 90a1131

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flytekit/remote/remote.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2967,6 +2967,12 @@ def activate_launchplan(self, ident: Identifier):
29672967
"""
29682968
self.client.update_launch_plan(id=ident, state=LaunchPlanState.ACTIVE)
29692969

2970+
def deactivate_launchplan(self, ident: Identifier):
2971+
"""
2972+
Given a launchplan, deactivate it, all previous versions are deactivated.
2973+
"""
2974+
self.client.update_launch_plan(id=ident, state=LaunchPlanState.INACTIVE)
2975+
29702976
def download(
29712977
self, data: typing.Union[LiteralsResolver, Literal, LiteralMap], download_to: str, recursive: bool = True
29722978
):

0 commit comments

Comments
 (0)