To stop the Airflow scheduler and webserver, you need to follow the below steps:
- Open up the terminal or command prompt window.
- Type in “airflow webserver -p 8080 -D” to start the Airflow webserver in daemon mode.
- Next, type in “airflow scheduler” to start the Airflow scheduler.
- To stop the running Airflow webserver and scheduler, press “Ctrl + C” in the terminal window. This will stop the process and pull back control to the terminal.
- If you’re working with the webserver, you also have to stop the daemon service. You can use the following command to stop the daemon:
$ kill $(cat airflow-webserver.pid)
These steps should help you stop the Airflow scheduler and webserver.