abhilash1in opened a new issue #11006:
URL: https://github.com/apache/airflow/issues/11006


   **Apache Airflow version**: 1.10.12
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): N/A
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: Local machine
   - **OS** (e.g. from /etc/os-release): macOS Catalina
   - **Kernel** (e.g. `uname -a`): `Darwin Abhilashs-MBP 19.6.0 Darwin Kernel 
Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; 
root:xnu-6153.141.1~1/RELEASE_X86_64 x86_6`
   - **Install tools**:
   - **Others**:
   
   
   **What happened**:
   Created two zipped DAGs as follows:
   
   1. **sample-dag-test.zip**
   Contents:
   **sample-dag-test.zip/sample_dag/configs/config.py:**
   ```
   env = 'test'
   ```
   
   **sample-dag-test.zip/dag.py:**
   ```
   from datetime import datetime
   from airflow import DAG
   from airflow.operators.dummy_operator import DummyOperator
   from sample_dag.configs import config
   
   with DAG(f'sample-dag-{config.env}',
            schedule_interval='0 12 * * *',
            start_date=datetime(2020, 9, 17), catchup=False) as dag:
       task = DummyOperator(task_id=f'dummy_task')
   ```
   
   2. **sample-dag-prod.zip**
   Contents:
   **sample-dag-prod.zip/sample_dag/configs/config.py:**
   ```
   env = 'prod'
   ```
   
   **sample-dag-prod.zip/dag.py:**
   ```
   from datetime import datetime
   from airflow import DAG
   from airflow.operators.dummy_operator import DummyOperator
   from sample_dag.configs import config
   
   with DAG(f'sample-dag-{config.env}',
            schedule_interval='0 12 * * *',
            start_date=datetime(2020, 9, 17), catchup=False) as dag:
       task = DummyOperator(task_id=f'dummy_task')
   ```
   Both DAGs are listed on the home page (`/admin/`):
   
   ![Screen Shot 2020-09-17 at 5 48 13 
PM](https://user-images.githubusercontent.com/9111980/93542487-052e4c00-f90e-11ea-9ad2-6ea8bd6ad41c.png)
   
   
   When I click on `sample-dag-prod`, I'm able to view it 
(`/admin/airflow/tree?dag_id=sample-dag-prod`). 
   
   ![Screen Shot 2020-09-17 at 5 44 42 
PM](https://user-images.githubusercontent.com/9111980/93542442-e334c980-f90d-11ea-941b-8798c7d54beb.png)
   
   However, when I click on `sample-dag-test`, Airflow says `DAG 
"sample-dag-test" seems to be missing.`
   ![Screen Shot 2020-09-17 at 5 44 57 
PM](https://user-images.githubusercontent.com/9111980/93542443-e465f680-f90d-11ea-9ef2-44007d458d0d.png)
   
   **What you expected to happen**:
   I should be able to view and run both DAGs.
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   As described above.
   <!---
   
   As minimally and precisely as possible. Keep in mind we do not have access 
to your cluster or dags.
   
   If you are using kubernetes, please attempt to recreate the issue using 
minikube or kind.
   
   ## Install minikube/kind
   
   - Minikube https://minikube.sigs.k8s.io/docs/start/
   - Kind https://kind.sigs.k8s.io/docs/user/quick-start/
   
   If this is a UI bug, please provide a screenshot of the bug or a link to a 
youtube video of the bug in action
   
   You can include images using the .md style of
   ![alt text](http://url/to/img.png)
   
   To record a screencast, mac users can use QuickTime and then create an 
unlisted youtube video with the resulting .mov file.
   
   --->
   
   
   **Anything else we need to know**:
   - Happens every time.
   - No errors in webserver and scheduler logs.
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to