amoghrajesh commented on code in PR #56710:
URL: https://github.com/apache/airflow/pull/56710#discussion_r2435268083


##########
airflow-core/src/airflow/dag_processing/processor.py:
##########
@@ -294,17 +294,50 @@ def _execute_dag_callbacks(dagbag: DagBag, request: 
DagCallbackRequest, log: Fil
 
 
 def _execute_task_callbacks(dagbag: DagBag, request: TaskCallbackRequest, log: 
FilteringBoundLogger) -> None:
+    # Check if this is a failure callback early

Review Comment:
   Instead of doing this, a safety net would be to check if dag and task exist 
while executing callbacks 



-- 
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]

Reply via email to