Is there a way to make a cleanup task execute on t...
# flyte-support
p
Is there a way to make a cleanup task execute on termination from within the UI?
Screenshot 2024-10-04 at 11.02.39 AM.png
c
p
the failure node is that
fn0
, it's getting skipped when i terminate from the UI
I made a node fail by raising an exception in it, and it runs the cleanup as expected
c
Ahh, so it doesn’t execute the cleanup task when killed via the UI based
Abort
🤔
p
yep, but we have things we need to teardown on
Abort
too!
a
@prehistoric-leather-97354 is this similar to what's described by this issue?
p
I think the first one covers our use case better
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
a
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
p
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
or help to test/develop it
cc @gifted-advantage-40886 @acoustic-nest-94594 @damp-rain-31363 This would make it a lot easier to control some of our spark costs