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!

Cleanup Task on UI Termination

Summary

The user asks if a cleanup task can be performed upon termination via the user interface, mentioning that the failure node fn0 is skipped during UI termination. They observe that cleanup functions correctly when a node fails manually but not when using the UI's Abort function, indicating a need for cleanup in that scenario as well. The user also considers using agents for cleanup but finds the agents interface more complex regarding deployment and infrastructure, leading them to avoid it.

Status
resolved
Tags
    Source
    #ask-the-community
      j

      josh210

      10/17/2024

      cc <@U077P82HG8H> <@U07JCU5EBTN> <@U07JLUBCNFN> This would make it a lot easier to control some of our spark costs

      j

      josh210

      10/17/2024

      or help to test/develop it

      j

      josh210

      10/17/2024

      honestly I think if you could just deploy an agent ephemerally as if it were a task (which is basically the proposal in the issue you linked) I'm sure we would use that feature

      d

      david.espejo

      10/17/2024

      > the agents interface has a more complicated deploy/infra considerations so we've shied away from it I hear you, and your feedback is super appreciated. If there's any way we can help you, it'd be amazing

      j

      josh210

      10/17/2024

      We need to cleanup some compute resources on termination. I think agents might also work but tbh the agents interface has a more complicated deploy/infra considerations so we've shied away from it

      j

      josh210

      10/17/2024

      I think the first one covers our use case better

      d

      david.espejo

      10/17/2024
      d

      david.espejo

      10/17/2024

      <@U07655DJTDM> is this similar to what's described by <https://github.com/flyteorg/flyte/issues/2810|this issue>?

      j

      josh210

      10/4/2024

      yep, but we have things we need to teardown on Abort too!

      a

      architr

      10/4/2024

      Ahh, so it doesn’t execute the cleanup task when killed via the UI based Abort :thinking_face:

      j

      josh210

      10/4/2024

      I made a node fail by raising an exception in it, and it runs the cleanup as expected

      j

      josh210

      10/4/2024

      the failure node is that fn0 , it's getting skipped when i terminate from the UI

      j

      josh210

      10/4/2024

      Is there a way to make a cleanup task execute on termination from within the UI?