enough-branch-23683
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 logicfreezing-airport-6809
enough-branch-23683
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?freezing-airport-6809
enough-branch-23683
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 😕freezing-airport-6809
enough-branch-23683
03/30/2023, 4:03 PMenough-branch-23683
03/30/2023, 4:03 PMfreezing-airport-6809
tall-lock-23197
freezing-airport-6809
tall-lock-23197