ecodina commented on issue #61916:
URL: https://github.com/apache/airflow/issues/61916#issuecomment-3904973515

   I've been able to inspect the contents of `/proc/7/fd` by adding `cap_add: 
SYS_PTRACE` to my stack configuration.
   
   With this, I've been able to verify that the problem is that logs are not 
being closed. I ran 4 triggers in Airflow for 2 different Dags (1 uses 
ExternalTaskSensor in deferrable mode, the other uses my custom trigger).
   
   5 minutes after the tasks were automatically marked as success, the logs 
were still open:
   
   ```
   root@94a7fc45a7de:/opt/airflow# ls -l /proc/7/fd
   total 0
   lrwx------. 1 default root 64 Feb 15 18:28 0 -> /dev/null
   l-wx------. 1 default root 64 Feb 15 18:28 1 -> 'pipe:[94179334]'
   lrwx------. 1 default root 64 Feb 15 18:29 10 -> 'socket:[94177924]'
   lrwx------. 1 default root 64 Feb 15 18:28 11 -> 'socket:[94179529]'
   lrwx------. 1 default root 64 Feb 15 18:29 12 -> 'socket:[94177925]'
   l-wx------. 1 default root 64 Feb 15 18:29 13 -> 
'/opt/airflow/logs/dag_id=producer-dag-test/run_id=manual__2026-02-15T18:29:28.302368+00:00/task_id=task1/attempt=1.log.trigger.327.log'
   l-wx------. 1 default root 64 Feb 15 18:33 14 -> 
'/opt/airflow/logs/dag_id=external-task-test/run_id=manual__2026-02-15T18:32:52.118397+00:00/task_id=wait-2/attempt=1.log.trigger.327.log'
   l-wx------. 1 default root 64 Feb 15 18:33 15 -> 
'/opt/airflow/logs/dag_id=external-task-test/run_id=manual__2026-02-15T18:32:52.118397+00:00/task_id=wait-task/attempt=1.log.trigger.327.log'
   l-wx------. 1 default root 64 Feb 15 18:28 2 -> 'pipe:[94179335]'
   lrwx------. 1 default root 64 Feb 15 18:28 3 -> 'socket:[94179521]'
   lrwx------. 1 default root 64 Feb 15 18:28 4 -> 'anon_inode:[eventpoll]'
   lrwx------. 1 default root 64 Feb 15 18:28 5 -> 'socket:[94179523]'
   l-wx------. 1 default root 64 Feb 15 18:29 6 -> 
'/opt/airflow/logs/dag_id=producer-dag-test/run_id=manual__2026-02-15T18:29:08.684956+00:00/task_id=task1/attempt=1.log.trigger.327.log'
   lrwx------. 1 default root 64 Feb 15 18:28 7 -> 'socket:[94179525]'
   lrwx------. 1 default root 64 Feb 15 18:29 8 -> 'anon_inode:[eventpoll]'
   lrwx------. 1 default root 64 Feb 15 18:28 9 -> 'socket:[94179527]'
   ```
   
   Does this help, @SakshamSinghal20 ?


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