Looking for a way to conditionalize task retries. The API I am extracting from can produce a few exceptions, some of which should stop the flow altogether and others that should be retried. I'm looking for the Prefect code that manages retries, but have had little luck. Would returning a
Cancelled
state vs a
Failed
state work?