New RunLLM response generated: >>>*# Question* we...
# runllm-flyte-trial
a
New RunLLM response generated: >>>*# Question* we're using flytekit==1.11.0 and noticing that within a workflow we have this pattern
Copy code
try:
    task_func()
except:
    handle_err_task()
else:
    handle_success_task()
finally:
    clean_up_task()
and im noticing that even without exception
handle_success_task
does not execute. is this a known issue fixed in a future version? not seeing much online # Answer The issue you're experiencing is related to Flyte's handling of task execution and error propagation. Flyte workflows do not support traditional Python try-except-else-finally blocks for task execution. Instead, Flyte uses its own mechanisms for handling task failures and conditional execution. According to this discussion, Flyte currently does not support running a task conditionally based on the success or failure of another task directly within the workflow using try-except blocks. This feature is supported in the backend through failure nodes but is not yet implemented in Flytekit. Would you like more detailed information on how to handle task failures and conditional execution in Flyte workflows? Sources: - this discussion Slack Link https://flyte-org.slack.com/archives/CP2HDHKE1/p1724923249.715119 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.