fbmatilla commented on issue #45395:
URL: https://github.com/apache/airflow/issues/45395#issuecomment-2571716628

   Hi @gopidesupavan, 
   
   thank you for your reply.
   
   It is really weird because the selected menu is "Logs" but in the body you 
see "No XCom".
   
   
   In order to reproduce it you will need to:
   
   1.- Set up the smtp_default connection to a right SMTP server:
   
![image](https://github.com/user-attachments/assets/e249e6c5-215d-45f3-b51a-7088e273e774)
   
   2.- Put the following DAG in you DAG folder, and please change 
"[email protected]" by your email:
   ```
   
   from airflow import DAG
   from airflow.utils.dates import days_ago
   from airflow.operators.python import PythonOperator
   from typing import Any
   
   
   default_args = {
       'owner': 'Axesor',
       'depends_on_past': False,
       'start_date': days_ago(1),
       'email': "[email protected]",
       'email_on_failure': True
   }
   
   
   
   def task_1(ds: Any, **kwargs: Any) -> None:
       raise Exception("Error")
   
   
   with DAG(
       'example',
       schedule_interval=None,
       default_args=default_args
   ) as dag:
   
       task1 = PythonOperator (
           task_id="task_1",
           python_callable=task_1
       )
   
       task1
   ```
   
   3.- Run the DAG and you will receive an email like this:
   
![image](https://github.com/user-attachments/assets/4a709273-b353-4e49-8ffc-c42dacea2756)
   
   4.- If you click on the Log link you will see the "No XCom" in the main 
screen and if you remove the base_date from the URL then you will see the logs 
now correctly.
   
   Let me know please.
   
   
   
   
   


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