In my DAG file, I have define a on_failure_callback() function to post a Slack in case of failure.
It works well if I specify for each operator in my DAG : on_failure_callback=on_failure_callback()
Is there a way to automate (via default_args for instance, or via my DAG object) the dispatch to all of my operators?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…