dstandish commented on code in PR #27113:
URL: https://github.com/apache/airflow/pull/27113#discussion_r998550969
##########
airflow/models/dagrun.py:
##########
@@ -593,17 +604,22 @@ def recalculate(self) -> _UnfinishedStates:
msg='task_failure',
)
+ if notification:
+ notification(dag_run=self, callback_request=cb)
+ if dag.has_on_success_callback:
Review Comment:
maybe better would be to not combine the notification into this if / else
block in the way you've done ... the nested branching could be more
complicated than necessary? e.g. case in point here this is supposed to be
`has_on_failure_callback` i think. i'm not 100% sure there's a better way, but
there _could_ be and it might be worth giving it a think
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]