#1354 [BUG] Flyteadmin shouldn't allow launching an execution in archived state
Issue created by
pmahindrakar-oss
Describe the bug
Each launch plan can be in one of two states.
• Archived
• Active
Admin exposes an api to toggle between these two states.
But in case a user launches an execution for a launchplan then this state flag is ignored.
Expected behavior
Flyteadmin create execution should throw an error in case the launch plan state is archived.
[Optional] Additional context
To Reproduce
Steps to reproduce the behavior:
1. update the launch plan state to archived
2. create an execution for the same launchplan
Screenshots
If applicable, add screenshots to help explain your problem.
flyteorg/flyte