Hi all, I'm looking for a way to cancel a workflow...
# flytekit
b
Hi all, I'm looking for a way to cancel a workflow from within a task, so it stops and goes into the
aborted
state, not
failed
. Is it possible to trigger that from flytekit somehow? Background is that based on a precondition like too few data points, I don't want to trigger a training task, and
aborted
would be perfect to communicate that it's not a failure, but still didn't run.
t
Hey! How about a conditional workflow? https://docs.flyte.org/projects/flytekit/en/latest/generated/flytekit.conditional.html#flytekit.conditional (I think a better place for this might be #CP2HDHKE1 btw, more people might be able to jump in 🦘 )
👍 1
I’ll move this to the other message
👍 1
f
@boundless-pizza-95864 raise an non retryable exception