You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Meghsham-Jambhulkar (via GitHub)" <gi...@apache.org> on 2024/04/22 07:00:02 UTC

[I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Meghsham-Jambhulkar opened a new issue, #109:
URL: https://github.com/apache/airflow-client-python/issues/109

   Hello , Currently i am working on a task where i have to generate  logs of success and failed DAGs 
   
   With help of following code I am able to get DAG details about success DAGs I am able to get DAG_ids , Start_date , end_date ,state all 
   necessary things for a DAG only part I am stuck at is getting reason why a DAG failed 
   I have used following list of functions to help me reach here 
   - get_dag_runs
   - get_dag_runs_batch
   - get_dag_run
   - get_task_instances
   
   If any solutions please let me know


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #109:
URL: https://github.com/apache/airflow-client-python/issues/109#issuecomment-2068910080

   I guess - tou should read logs and guess itfrom there. There is not a single reason for failure, you must use what is available in logs. 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "Meghsham-Jambhulkar (via GitHub)" <gi...@apache.org>.
Meghsham-Jambhulkar commented on issue #109:
URL: https://github.com/apache/airflow-client-python/issues/109#issuecomment-2068928452

   @potiuk  
   Thank you for your time 
   It is really helpful and yes after your comment i have reviewed it and I will close it accordingly
   It was really helpful , I am really glad you went out of the way to help me
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #109:
URL: https://github.com/apache/airflow-client-python/issues/109#issuecomment-2068916894

   I see you opened https://github.com/apache/airflow-client-python/issues/110 -> you need to look at your airflow's logging configuration if you have troubles retrieving your logs. But it's not Python client's issue


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #109: Trouble to access reason behind Failed DAGs LOG 
URL: https://github.com/apache/airflow-client-python/issues/109


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "Meghsham-Jambhulkar (via GitHub)" <gi...@apache.org>.
Meghsham-Jambhulkar commented on issue #109:
URL: https://github.com/apache/airflow-client-python/issues/109#issuecomment-2068903365

   @potiuk 
   First of all Thank you for you input I am currently using these methods and they are working as expected , Its just the issue is when i am working on Failed DAGs I do not find a way to load error message for failed dags
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Trouble to access reason behind Failed DAGs LOG [airflow-client-python]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #109:
URL: https://github.com/apache/airflow-client-python/issues/109#issuecomment-2068703176

   You should anly use REST API. You should get familiar with it. Calling internal methods of objects in Python is not part of the public interface of Airflow https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html and if you rely on it, it will break. 


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org