You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "atul-astronomer (via GitHub)" <gi...@apache.org> on 2025/11/05 05:44:19 UTC

[I] Downloaded task logs for taskgroup does not have .txt extension [airflow]

atul-astronomer opened a new issue, #57847:
URL: https://github.com/apache/airflow/issues/57847

   ### Apache Airflow version
   
   3.1.1
   
   ### If "Other Airflow 2/3 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   User can now download the AF3 task logs from UI but downloaded task logs for taskgroup does not have .txt extension to the file and hence user is not able to open the file and see the logs.
   
   <img width="275" height="398" alt="Image" src="https://github.com/user-attachments/assets/330b1f7f-4400-429d-a133-50db133b5ba5" />
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Run breeze on 3.1.2rc1 and run any taskgroup dag, navigate to the task logs and download the file, notice that file does not have .txt extension and hence user see a window asking how to open the file.
   
   ```python
   from datetime import datetime, timedelta
   
   from airflow.sdk import DAG
   from airflow.decorators import task
   from airflow.providers.standard.operators.bash import BashOperator
   from airflow.utils.task_group import TaskGroup
   
   foo_var = {"VAR1": "FOO"}
   bar_var = {"VAR1": "BAR"}
   hi_cmd = 'echo "hello $VAR1"'
   bye_cmd = 'echo "goodbye $VAR1"'
   
   
   @task
   def envs():
       return [foo_var, bar_var]
   
   
   @task
   def cmds():
       return [hi_cmd, bye_cmd]
   
   
   with DAG(
       dag_id="mapped_bash_taskgroup",
       start_date=datetime(1970, 1, 1),
       schedule=None,
       tags=["taskmap"]
   ) as dag:
   
       with TaskGroup(group_id="dynamic"):
           dynamic = BashOperator.partial(task_id="bash").expand(
               env=envs(), bash_command=cmds()
           )
   
   ``` 
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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] Downloaded task logs for taskgroup does not have .txt extension [airflow]

Posted by "RoyLee1224 (via GitHub)" <gi...@apache.org>.
RoyLee1224 commented on issue #57847:
URL: https://github.com/apache/airflow/issues/57847#issuecomment-3494439729

   Happy to help with this.


-- 
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] Downloaded task logs for taskgroup does not have .txt extension [airflow]

Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun closed issue #57847: Downloaded task logs for taskgroup does not have .txt extension
URL: https://github.com/apache/airflow/issues/57847


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