Andrés Gómez Ferrer
03/30/2023, 1:42 PMContainerError
inside a task using flytekit python?
https://docs.flyte.org/projects/flyteidl/en/latest/protos/docs/core/core.html#ref-flyteidl-core-containererror
For example, if I want to raise/return NON_RECOVERABLE
or RECOVERABLE
depends of the task logicKetan (kumare3)
Andrés Gómez Ferrer
03/30/2023, 2:03 PM@task
def t1(a: int) -> op:
raise FlyteRecoverableException("error")
return op(a + 2, "world")
This is a recoverable task and flyte should retry it, right?Ketan (kumare3)
Andrés Gómez Ferrer
03/30/2023, 2:18 PMTraceback (most recent call last):
File "/usr/src/app/.venv/lib/python3.8/site-packages/flytekit/exceptions/scopes.py", line 203, in user_entry_point
return wrapped(*args, **kwargs)
File "/usr/src/app/andresg_wf_testing/test.py", line 14, in t1
raise FlyteRecoverableException("error")
Message:
error
User error.
but the task only tried to do one attempt 😕Ketan (kumare3)
Andrés Gómez Ferrer
03/30/2023, 4:03 PMKetan (kumare3)
Samhita Alla
Ketan (kumare3)
Samhita Alla