anneadb commented on issue #39026:
URL: https://github.com/apache/airflow/issues/39026#issuecomment-2141704446

   Hi @vincbeck,
   the original ECS logs were empty as well.
   I believe that Airflow fetches the logs from the other log group at some 
point and integrates them in the task log.
   
   For example the successful ECS log looks like this:
   
   ```
   2024-05-31T06:07:01.798Z | Package Version
   2024-05-31T06:07:01.799Z | ------------------- -----------
   2024-05-31T06:07:01.800Z | aiobotocore 2.11.2
   2024-05-31T06:07:01.801Z | aiohttp 3.9.5
   2024-05-31T06:07:01.803Z | aioitertools 0.11.0
   2024-05-31T06:07:01.804Z | aiosignal 1.3.1
   ```
   
   And then the successful task log looks like this:
   
   ```
   2024-05-31T06:06:13.197Z     [2024-05-31T06:06:13.197+0000] {{ecs.py:647}} 
INFO - ECS task ID is: e4bf16d0600b5cccaed7912ed8444c9c
   2024-05-31T06:06:13.230Z     [2024-05-31T06:06:13.230+0000] {{ecs.py:573}} 
INFO - Starting ECS Task Log Fetcher
   2024-05-31T06:06:43.271Z     [2024-05-31T06:06:43.271+0000] {{base.py:73}} 
INFO - Using connection ID 'aws_12345678910' for task execution.
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,798] Package Version
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,799] ------------------- 
-----------
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,800] aiobotocore 2.11.2
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,801] aiohttp 3.9.5
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,803] aioitertools 0.11.0
   2024-05-31T06:07:14.155Z     [2024-05-31T06:07:14.155+0000] 
{{task_log_fetcher.py:63}} INFO - [2024-05-31 06:07:01,804] aiosignal 1.3.1
   ```
   


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