Hi! I have a somewhat flaky Prefect task that runs some ETL. I’ve already decorated the task with retry logic (
max_retries
,
retry_delay
, etc), and there’s a task after the ETL task to send a notification to slack (not quite using the Slack integration, but querying the Slack API directly). That said, is it possible to hook into the retry logic such that whenever that ETL task gets retried, I can execute some logic?
For example, “whenever this task is going to be put into the
RETRY
state, run this code”? Would this be a state handler like the
terminal_state_handler
on the
Flow
, but for the specific task? Or just a state handler passed to
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.