I would like to use the flyte api's to fetch the latest a launchplan for a deployment environment without specifying the sha.
How to fetch a launch plan using flyte api's without specifying a sha?
211 views Asked by Adithya At
1
I would like to use the flyte api's to fetch the latest a launchplan for a deployment environment without specifying the sha.
Users are encouraged to specify the SHA when referencing Launch Plans or any other Flyte entity. However, there is one exception. Flyte has the notion of an active launch plan. For a given project/domain/name combination, a Launch Plan can have any number of versions. All four fields combined identify one specific Launch Plan. Those four fields are the primary key. One, at most one, of those launch plans can also be what we call 'active'.
To see which ones are active, you can use the
list-active-launch-planscommand inflyte-cliHowever, please be aware that if a launch plan is active, and has a schedule, that schedule will run. There is no way to make a launch plan "active" but disable its schedule (if it has one).
If you would like to set a launch plan as active, you can do so with the
update-launch-plancommand.First find the version you want (results truncated):
Then