From de12c820d5cabc7dc0de56499a2cb395199518fd Mon Sep 17 00:00:00 2001 From: machichima <60069744+machichima@users.noreply.github.com> Date: Fri, 6 Dec 2024 03:22:55 +0800 Subject: [PATCH] docs: add raise user error section (#6084) Signed-off-by: machichima --- docs/user_guide/customizing_dependencies/raw_containers.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/user_guide/customizing_dependencies/raw_containers.md b/docs/user_guide/customizing_dependencies/raw_containers.md index c30ad9472a..fa404c8fbc 100644 --- a/docs/user_guide/customizing_dependencies/raw_containers.md +++ b/docs/user_guide/customizing_dependencies/raw_containers.md @@ -52,6 +52,13 @@ One of the benefits of raw container tasks is that Flytekit does not need to be Raw containers can be run locally when flytekit version >= 1.11.0. ::: +### Raise User Error + +Raw containers handle errors by checking for the presence of an `_ERROR` file in the +`output_data_dir` after the container's execution. If this file exists, Flyte treats it as +a user-defined error and retries the task if `retries` parameter is set in the task +metadata. + ## Scripts The contents of each script specified in the `ContainerTask` is as follows: