Is there any way to have a task do some cleanup wh...
# flyte-support
p
Is there any way to have a task do some cleanup when it's being aborted?
f
You can add onerror for workflow
If you want task level cleanup then agents is the only way
Or use eager mode
p
I think there might actually be another way to do within-container cleanup. I'm trying something out today and I'll open up a documentation PR if it works out
f
that is by catching signals, but it is not guaranteed
p
Fair, so the on failure is called for aborts too?
It looks like this doesn't do anything when you terminate from the UI
Screenshot 2024-10-04 at 11.02.39 AM.png