New RunLLM response generated: >>>*# Question* Hi...
# runllm-flyte-trial
j
New RunLLM response generated: >>>*# Question* Hi everyone! I would like to create a custom task that extends the logic of my other existing tasks. My custom task should collect some metrics, send events to another API, and invoke the logic of the tasks it wraps. Does Flyte have an out-of-the-box feature for this, or should I create a decorator that wraps Flyte's task decorator? Thank you! # Answer Flyte does not have an out-of-the-box feature specifically for creating custom tasks that extend the logic of existing tasks by collecting metrics and sending events. However, you can achieve this by creating a custom decorator that wraps Flyte's task decorator. This approach allows you to execute additional logic before and after the task's main logic. Would you like more details on how to implement this using decorators? Sources: - Decorating tasks Slack Link https://.slack.com/archives/CP2HDHKE1/p1730757998.681379 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.