Apologies for the second post. Forgot to include t...
# prefect-community
k
Apologies for the second post. Forgot to include the image
j
I'm not sure I understand the question - are you asking if there's a way a task failure can end the whole flow run early? If so, you can raise
ENDRUN
in a task (or state handler) to signal the flow run to end early with a specified final state: https://docs.prefect.io/api/latest/engine/signals.html#endrun
k
I guess it's two questions. 1) Can I differentiate
TriggerFailed
from
Failure
failure states in a task that runs via the trigger
any_failed
2) The second half was how to end a flow early, which you addressed. Thanks!
j
You'd need to write your own trigger, but within that you could differentiate between those states.
k
Got it, thanks!