Open pmahindrakar-oss opened 3 years ago
cc : @katrogan @kumare3
I think we should not fail all archived requests... It's ok to fail user-initiated launches (like from flytectl/UI) but if the origin of the launch is system (e.g. propeller), it should let it be...
@EngHabu I guess you are saying so for the cases when we have a nested launchplan within another workflow. But, IMO the solution is that deactivate / deprecate should
This can be achieved by allowing the user-agent / origin type of semantics for the execution. For all Flyte components, the origin is always known.
For example we can use ExecutionMode to only allow executions of type SYSTEM
maybe with a parent-node-id?
maybe it's worth decoupling the schedule state (active|inactive) from the launch plan state and then focusing around disallowing archived launch plans from being executed if we want to be strict with semantics
for 2) this should already be the case, upon dequeuing a pending execution we should still validate whether an active version of the reference launch plan exists
@kumare3 are you saying that SYSTEM
triggered executions should be exempt from the archive status check?
@katrogan I think system triggered executions should not be exempt. Only Propeller triggered ones should be. I really think we should handle this to avoid ugainly user experience
sounds good. we should probably tackle this issue once the UI changes are in to archive entities and therefore archiving is more broadly usable/accessible
Hello 👋, This issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will close the issue if we detect no activity in the next 7 days. Thank you for your contribution and understanding! 🙏
Hello 👋, This issue has been inactive for over 9 months and hasn't received any updates since it was marked as stale. We'll be closing this issue for now, but if you believe this issue is still relevant, please feel free to reopen it. Thank you for your contribution and understanding! 🙏
Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏
Describe the bug Each launch plan can be in one of two states.
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:
Screenshots If applicable, add screenshots to help explain your problem.