perf: 添加监测 celery

pull/6645/head
ibuler 2021-08-13 11:23:19 +08:00 committed by 老广
parent 84e60283b8
commit a5419b49ee
1 changed files with 7 additions and 0 deletions

7
utils/check_celery.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
if [[ "$(ps axu | grep 'celery' | grep -v 'grep' | grep -cv 'defunct')" == "5" ]];then
exit 0
else
exit 1
fi