ygu*_*guw 7 linux airflow apache-airflow airflow-scheduler
我和气流的新手,并在守护程序模式下意外启动了气流调度程序。现在,我想终止调度程序并可能重新启动它。我试着做
sudo kill -9 <list of pids>
pkill <name>
Run Code Online (Sandbox Code Playgroud)
什么都没发生。当我跑步
ps aux | grep 'airflow scheduler'
Run Code Online (Sandbox Code Playgroud)
我看到以下条目:
user1 2907 6.0 1.0 329788 62996 ? Sl 17:37 1:26 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
user1 2909 0.0 0.9 327576 58948 ? Sl 17:37 0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
user1 2910 0.0 0.9 327576 58944 ? Sl 17:37 0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
user1 2911 0.0 0.9 327576 58944 ? Sl 17:37 0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
Run Code Online (Sandbox Code Playgroud)
...等等,对于35行具有不同的pid。
关于如何在不重新启动机器的情况下停止/杀死气流计划程序的任何建议。我还检查了pid文件中的调度程序,并尝试杀死该pid,但没有任何效果。
任何帮助表示赞赏。谢谢!
不幸的是
kill $(ps -ef | grep "airflow scheduler" | awk '{print $2}')
Run Code Online (Sandbox Code Playgroud)
我找不到干净的解决方案。
同时查看代码
https://github.com/apache/incubator-airflow/blob/master/airflow/bin/cli.py
| 归档时间: |
|
| 查看次数: |
8223 次 |
| 最近记录: |