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/07/06 19:45:32 UTC

[GitHub] [airflow] psg2 opened a new issue #16839: /dag/{dag_id} returns stale dags without its serialized version unlike /dags/{dag_id}/details

psg2 opened a new issue #16839:
URL: https://github.com/apache/airflow/issues/16839


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the following questions.
   Don't worry if they're not all applicable; just try to include what you can :-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the context.
   
   -->
   
   **Apache Airflow version**: 2.1.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: N/A
   - **OS** (e.g. from /etc/os-release): N/A
   - **Kernel** (e.g. `uname -a`): N/A
   - **Install tools**: N/A
   - **Others**: N/A
   
   **What happened**:
   
   After removing a dag from the filesystem, Airflow cleans up the SerializedDags table and updates the DAG table to mark the DAG with is_active as False. If you call the /dag/{dag_id} endpoint with the removed dag_id, it will return the stale information about the dag, but if you call the /dag/{dag_id}/details you will receive and 404 error Dag Not Found.
   
   Slack thread: https://apache-airflow.slack.com/archives/CCPRP7943/p1625504228302500
   
   <!-- (please include exact error messages if you can) -->
   
   **What you expected to happen**:
   
   Receive a 404 Dag Not Found on /dag/{dag_id} as well.
   
   <!-- What do you think went wrong? -->
   
   **How to reproduce it**:
   <!---
   
   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.
   
   --->
   
   1. Write a DAG file
   2. Wait for Airflow to parse it
   3. Remove the file
   4. Call the API
   
   
   **Anything else we need to know**:
   
   <!--
   
   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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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



[GitHub] [airflow] potiuk commented on issue #16839: /dag/{dag_id} returns stale dags without its serialized version unlike /dags/{dag_id}/details

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #16839:
URL: https://github.com/apache/airflow/issues/16839#issuecomment-877621338


   Closed as per conversation in #16842 


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



[GitHub] [airflow] mik-laj commented on issue #16839: /dag/{dag_id} returns stale dags without its serialized version unlike /dags/{dag_id}/details

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #16839:
URL: https://github.com/apache/airflow/issues/16839#issuecomment-875951918


   Endpoint `/dag/{dag_id} ` returns the active DAGs by default. If you want access to all DAGs, you must use the is_active parameter. To access all DAGS - both active and inactive, you should pass `in_active` parameter.  Thanks to this, you can access archived data, but by default, you have consistent UI with CLI (`airflow dags list`) and Web UI (`/home/`).


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



[GitHub] [airflow] potiuk closed issue #16839: /dag/{dag_id} returns stale dags without its serialized version unlike /dags/{dag_id}/details

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16839:
URL: https://github.com/apache/airflow/issues/16839


   


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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16839: /dag/{dag_id} returns stale dags without its serialized version unlike /dags/{dag_id}/details

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


   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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

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