New RunLLM response generated:
>>>*# Question*
Is there any way to have a task do some cleanup when it's being aborted?
# Answer
Yes, you can use a failure node to ensure cleanup tasks are executed when a task fails. According to the
Flyte documentation, you can designate a specific node to execute in the event of a failure within your workflow. This ensures that critical actions, such as cleanup, are performed even if a task fails.
Would you like more details on how to implement this?
Sources:
-
Flyte documentation
Slack Link
https://.slack.com/archives/CP2HDHKE1/p1727907402.072199 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.