F

Flyte enables you to build & deploy data & ML pipelines, hassle-free. The infinitely scalable and flexible workflow orchestration platform that seamlessly unifies data, ML and analytics stacks. Explore and Join the Flyte Community!

Deactivate Scheduled Launch Plan in Flyte

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.

Status
resolved
Tags
  • Scheduled Launch Plan
  • Workflow Management
  • Workflow
  • flyte
  • Flyte
  • Deactivate
  • User
  • Product Help
  • Failure Node Documentation
  • Failure Nodes
  • Question
  • Developer Help
  • Community
Source
#ask-the-community
    t

    talp

    10/21/2024

    Thank you! Really appreciated

    r

    runllm

    10/21/2024

    Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:

    h

    habuelfutuh

    10/21/2024

    <@U06RKAMK0UC> how to get the current execution's execution Id

    r

    runllm

    10/21/2024

    Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:

    h

    habuelfutuh

    10/21/2024

    <@U06RKAMK0UC>

    h

    habuelfutuh

    10/21/2024

    Yes, please write the code to do that

    r

    runllm

    10/21/2024

    Sure thing! I'm looking through the available data to answer your question. Hold on a second... :hourglass_flowing_sand:

    h

    habuelfutuh

    10/21/2024

    I'm on my phone atm.. maybe <@U05FFAF4FC2> can help? Or <@U06RKAMK0UC> ?

    t

    talp

    10/21/2024

    Thanks! That's interesting. How would I accomplish the inspection part?

    h

    habuelfutuh

    10/21/2024

    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)

    e

    eric901201

    10/21/2024

    but this is a good feature request

    e

    eric901201

    10/21/2024

    no i don't think so

    t

    talp

    10/21/2024

    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?