BasPH opened a new issue #8687:
URL: https://github.com/apache/airflow/issues/8687


   **Apache Airflow version**:
   
   1.10.10
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release):
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   I started the Airflow webserver on an occupied port (8080), and it kept 
trying to reconnect. So I wanted to quit with ctrl+C, but the signal is not 
handled. Only `kill -9` can shutdown the process:
   
   ```
   $ airflow webserver
     ____________       _____________
    ____    |__( )_________  __/__  /________      __
   ____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
   ___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
    _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
   
   .....
   
   [2020-05-03 10:43:09 +0200] [7403] [INFO] Starting gunicorn 19.9.0
   [2020-05-03 10:43:09 +0200] [7403] [ERROR] Connection in use: ('0.0.0.0', 
8080)
   [2020-05-03 10:43:09 +0200] [7403] [ERROR] Retrying in 1 second.
   [2020-05-03 10:43:10 +0200] [7403] [ERROR] Connection in use: ('0.0.0.0', 
8080)
   [2020-05-03 10:43:10 +0200] [7403] [ERROR] Retrying in 1 second.
   [2020-05-03 10:43:11 +0200] [7403] [ERROR] Connection in use: ('0.0.0.0', 
8080)
   [2020-05-03 10:43:11 +0200] [7403] [ERROR] Retrying in 1 second.
   ^C[2020-05-03 10:43:12 +0200] [7403] [ERROR] Connection in use: ('0.0.0.0', 
8080)
   [2020-05-03 10:43:12 +0200] [7403] [ERROR] Retrying in 1 second.
   ^C[2020-05-03 10:43:13 +0200] [7403] [ERROR] Connection in use: ('0.0.0.0', 
8080)
   [2020-05-03 10:43:13 +0200] [7403] [ERROR] Retrying in 1 second.
   ^C^C^C^C^C^C^C^C^C^C^C^C^C^C[2020-05-03 10:43:14 +0200] [7403] [ERROR] Can't 
connect to ('0.0.0.0', 8080)
   ^C^C^C^C^C^C^C^CKilled: 9
   ```
   
   You can see the `^C` not leading to a shutdown of the process.
   
   **What you expected to happen**:
   I expect the webserver to handle signals, even when the startup process 
hasn't completed yet.
   
   <!-- 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 sytle 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