nicolasdonoso opened a new issue #14586:
URL: https://github.com/apache/airflow/issues/14586


   <!--
   
   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.0.1
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): 1.18.15
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: AWS
   - **OS** (e.g. from /etc/os-release): ubuntu 18.04
   - **Kernel** (e.g. `uname -a`): Linux 
mlb-airflow-infra-workers-75f589bcd9-wtls8 4.9.0-9-amd64 #1 SMP Debian 
4.9.168-1 (2019-04-12) x86_64 x86_64 x86_64 GNU/Linux
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   
   <!-- (please include exact error messages if you can) -->
   Scheduler is constantly restarting due to this error:
   ```
   [2021-03-03 17:31:19,393] {scheduler_job.py:1298} ERROR - Exception when 
executing SchedulerJob._run_scheduler_loop
   Traceback (most recent call last):
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/jobs/scheduler_job.py", line 
1280, in _execute
       self._run_scheduler_loop()
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/jobs/scheduler_job.py", line 
1384, in _run_scheduler_loop
       self.executor.heartbeat()
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/executors/base_executor.py", 
line 162, in heartbeat
       self.sync()
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/executors/celery_executor.py", 
line 340, in sync
       self.update_all_task_states()
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/executors/celery_executor.py", 
line 399, in update_all_task_states
       state_and_info_by_celery_task_id = 
self.bulk_state_fetcher.get_many(self.tasks.values())
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/executors/celery_executor.py", 
line 552, in get_many
       result = self._get_many_from_db_backend(async_results)
     File 
"/usr/local/lib/python3.6/dist-packages/airflow/executors/celery_executor.py", 
line 570, in _get_many_from_db_backend
       task_cls = app.backend.task_cls
   AttributeError: 'DatabaseBackend' object has no attribute 'task_cls'
   [2021-03-03 17:31:20,396] {process_utils.py:100} INFO - Sending 
Signals.SIGTERM to GPID 3852
   [2021-03-03 17:31:20,529] {process_utils.py:66} INFO - Process 
psutil.Process(pid=3996, status='terminated', started='17:31:19') (3996) 
terminated with exit code None
   [2021-03-03 17:31:20,533] {process_utils.py:66} INFO - Process 
psutil.Process(pid=3997, status='terminated', started='17:31:19') (3997) 
terminated with exit code None
   [2021-03-03 17:31:20,533] {process_utils.py:206} INFO - Waiting up to 5 
seconds for processes to exit...
   [2021-03-03 17:31:20,540] {process_utils.py:66} INFO - Process 
psutil.Process(pid=3852, status='terminated', exitcode=0, started='17:31:13') 
(3852) terminated with exit code 0
   [2021-03-03 17:31:20,540] {scheduler_job.py:1301} INFO - Exited execute loop
   ```
   
   **What you expected to happen**: Scheduler running
   
   <!-- 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.
   
   --->
   
   
   **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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to