Hello all,

*TLDR*: We are using local executor with KubernetesPodOperator for our
airflow dags.
>From stack trace of scheduler we see that it is waiting on queue to join.

File: 
"/usr/local/lib/python3.7/site-packages/airflow/executors/local_executor.py",
line 212, in end
    self.queue.join()

Airflow version: 1.10.6

Usecase: We are using airflow for ETL pipeline to transform data from one
bigquery table to another bigquery table.

We have noticed that the scheduler frequently hangs without any detailed
logs.

Last lines are below:

[2019-12-12 13:28:53,370] {settings.py:277} DEBUG - Disposing DB
connection pool (PID 912099)
[2019-12-12 13:28:53,860] {dag_processing.py:693} INFO - Sending
termination message to manager.
[2019-12-12 13:28:53,860] {scheduler_job.py:1492} INFO - Deactivating
DAGs that haven't been touched since 2019-12-12T01:28:52.682686+00:00

On checking the thread dumps of the running process we found that the
scheduler is stuck waiting to join the tasks in queue.

File: 
"/usr/local/lib/python3.7/site-packages/airflow/executors/local_executor.py",
line 212, in end
    self.queue.join()

Detailed thread dump is below for all processes running in the Local
scheduler can be found here: https://pastebin.com/i6ChafWH

Please help in checking why the scheduler is getting stuck waiting for the
queue to join.

Thanks and Regards,
Maulik

Reply via email to