New RunLLM response generated:
>>>*# Question*
Is there a way to make a cleanup task execute on termination from within the UI?
# Answer
Currently, Flyte does not support executing a cleanup task directly upon termination from the UI. However, you can use a failure node to ensure cleanup tasks are executed if any task within the workflow fails. This approach ensures that critical actions, such as deleting resources, are performed even in the event of a failure.
According to the
failure node documentation, you can designate a specific node to execute in case of a failure within your workflow. This can be used to perform cleanup actions.
Would you like more details on how to set up a failure node for cleanup tasks?
Sources:
-
failure node documentation
Slack Link
https://.slack.com/archives/CP2HDHKE1/p1728063082.222769 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.