vengi57 opened a new issue #17646:
URL: https://github.com/apache/airflow/issues/17646


   **Apache Airflow version**:
   
   Version - 2.1.1
   
   **OS**:
   No LSB modules are available.
   Distributor ID:      Ubuntu
   Description: Ubuntu 18.04.2 LTS
   Release:     18.04
   Codename: bionic
   
   
   
   **Apache Airflow Provider versions**:
   
   apache-airflow-providers-ftp==2.0.0
   apache-airflow-providers-imap==2.0.0
   apache-airflow-providers-postgres==2.0.0
   apache-airflow-providers-sqlite==2.0.0
   
   
   **Deployment**:
    VM 
   
   **What happened**:
   Getting this warning message
   The scheduler does not appear to be running. The last heartbeat was received 
2 days ago. The DAGs list may not update, and new tasks will not be scheduled
   
   So that when I trigger my DAG it was stuck in the in-progress state for a 
long time and none of the  tasks of  DAGs are running
   
   If I restart the scheduler it was working fine for some hours but again 
getting the same  above mentioned issue 
   
   **What you expected to happen**:
   The scheduler should work properly in order to execute the dags which will 
take around 3 to 5 hrs to complete
   
   <!-- What do you think went wrong? -->
   Even though no DAGs are running we getting "The scheduler does not appear to 
be running. The last heartbeat was received 2 days ago. The DAGs list may not 
update, and new tasks will not be scheduled" error 
   
   **How to reproduce it**:
   1.Install Airflow
   2. Change the executor to Local Executor
   3. Change sql_alchemy_conn to Postgres DB
   4. Run airflow webserver &
   5. Run airflow scheduler &
   <!--
   As minimally and precisely as possible. Keep in mind we do not have access 
to your cluster or dags.
   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/screen-casts etc. by drag-dropping the image here.
   -->
   
   **Anything else we need to know**:
   This problem occurs when not dags are running for a while and getting  The 
scheduler does not appear to be running error
   
   Attached screenshot of the issue
   ![Screenshot from 2021-08-17 
11-26-57](https://user-images.githubusercontent.com/32476102/129671390-93edc9e3-22c2-482d-9357-1492819d501f.png)
   
   If I checked the scheduler status with /heath API getting unhealthy for the 
scheduler
   ![Screenshot from 2021-08-12 
16-52-57](https://user-images.githubusercontent.com/32476102/129674037-3b69bc94-00c2-4535-8b70-47e22e2cb008.png)
   
   Attached airflow.cfg file for the reference
   [airflow.txt](https://github.com/apache/airflow/files/6997420/airflow.txt)
   
   
   


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