You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/02 02:16:33 UTC

[GitHub] [airflow] mejran opened a new issue #15147: Dag created with a dag decorator in a packaged dag file (zip) has incorrect filepath property

mejran opened a new issue #15147:
URL: https://github.com/apache/airflow/issues/15147


   **Apache Airflow version**: 2.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): 1.19.6
   
   **Environment**: 
   
   - **Cloud provider or hardware configuration**: AWS EKS
   - **OS** (e.g. from /etc/os-release): Debian
   - **Kernel** (e.g. `uname -a`): 5.4.95-42.163.amzn2.x86_64
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   If a dag decorator is used in a packaged dag (zip file) then the filepath for that dag is not correct but rather it points to the airflow package's dag.py file on the local filesystem. This breaks the KubernetesExectutor as the directory passed to its LocalExecutor is incorrect.
   
   **What you expected to happen**:
   
   The filepath to point to the zip file path (ie: `/opt/airflow/dags/package.zip#dags.py`).
   
   **How to reproduce it**:
   
   - Create a dag decorator based dag:
   ```
   @dag()
   def bad():
       pass
   ```
   
   - Deploy this dag in a packaged zip
   
   - Check the filepath property in the UI.
   
   **Anything else we need to 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.

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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #15147: Dag created with a dag decorator in a packaged dag file (zip) has incorrect filepath property

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #15147:
URL: https://github.com/apache/airflow/issues/15147#issuecomment-812278953


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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:
users@infra.apache.org