'Airflow scheduler --pid command not work?

I would like to ask the question about whether command of Apache Airflow is work or not. Thank you.

OS Version: Ubuntu 20.04.4 LTS

Apache Airflow Version: 2.2.5

Airflow Command: airflow scheduler --pid /xxx/xxx.pid

Expected Result: process id file will exist in /xxx/xxx.pid



Solution 1:[1]

You must run airflow scheduler command with the daemon option together with the pid option.

Run

airflow schedule -D --pid /xxx/xxx.pid

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Oluwafemi Sule