Summary
The user is looking for a way to deactivate a scheduled launch plan for a workflow in the Flyte community if the workflow fails. They are informed that while there is no direct feature for this, they can use failure nodes to achieve the desired outcome. The user is also seeking guidance on how to inspect the execution to find out which launchpad was used for deactivation. They mention being on their phone and suggest that others in the community might assist. The conversation includes requests for code to get the current execution's execution ID and expresses gratitude for the help received. Additionally, a link to failure node documentation is provided.
eric901201
failure node documentation https://docs.flyte.org/en/latest/user_guide/development_lifecycle/failure_node.html#id1
talp
Thank you! Really appreciated
runllm
Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:
habuelfutuh
<@U06RKAMK0UC> how to get the current execution's execution Id
runllm
Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:
habuelfutuh
<@U06RKAMK0UC>
habuelfutuh
Yes, please write the code to do that
runllm
Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:
habuelfutuh
I'm on my phone atm.. maybe <@U05FFAF4FC2> can help? Or <@U06RKAMK0UC> ?
talp
Thanks! That's interesting. How would I accomplish the inspection part?
habuelfutuh
While it's correct there is no explicit feature to do exactly that, you can leverage failure nodes to achieve this. You can add a failure node to the workflow, it'll only be invoked in case the workflow fails, you can then inspect the execution using flyte remote to find out which launchpad was used and deactivate it (all using FlyteRemote)
eric901201
but this is a good feature request
eric901201
no i don't think so
talp
Hi Flyte community, I have a scheduled launchplan of a workflow. I wish to deactivate the launchplan if the workflow fails (in an execution) is there a way to do it?