mik-laj opened a new issue #8135: API Enddpoint - Logs
URL: https://github.com/apache/airflow/issues/8135
 
 
   **Description**
   Hello,
   
   We need to prepare an endpoint that will read the logs for the task. Logs 
are already available in Web UI, so abstractions should be created and used in 
both places. The code responsible for reading the log in the Web UI is in the 
file 
`[airflow/www/views.py](https://github.com/apache/airflow/blob/master/airflow/www/views.py)`
 method get_logs_with_metadata
   The token is metadata data serialized to JSON and encoded with base64. This 
is to prevent clients from building APIs based on a specific metadata 
structure. We cannot guarantee their permanent structure because they use 
external plugins.
   
   - GET 
/dags/{dag_id}/taskInstances/{task_id}/{execution_date}/logs/{task_try_number}
   
   https://github.com/apache/airflow/issues/8118
   
   **Use case / motivation**
   
   N/A
   
   **Related Issues**
   
   N/A

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to