https://flyte.org logo
#flytekit
Title
# flytekit
s

Sören Brunk

09/07/2023, 7:58 AM
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

Franco Bocci

09/07/2023, 8:05 AM
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

Ketan (kumare3)

09/07/2023, 1:20 PM
@Sören Brunk raise an non retryable exception
3 Views