Hi all, I'm looking for a way to cancel a workflow...
# flytekit
s
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.
f
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 #ask-the-community btw, more people might be able to jump in 🦘 )
I’ll move this to the other message
k
@Sören Brunk raise an non retryable exception