https://prefect.io logo
Title
d

Dominic Tarro

05/01/2023, 12:52 PM
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?
s

Sahil Rangwala

05/02/2023, 4:12 PM
You can conditionally kick of flows based on state changes as well if these exceptions are expected for certain use cases