16 lines
322 B
Bash
16 lines
322 B
Bash
#!/bin/bash
|
||
|
||
# 启动Celery Worker脚本
|
||
|
||
echo "正在启动Celery Worker..."
|
||
|
||
# 检查是否安装了Python
|
||
if ! command -v python &> /dev/null
|
||
then
|
||
echo "错误: 未找到Python,请先安装Python"
|
||
exit 1
|
||
fi
|
||
|
||
# 启动Celery Worker
|
||
echo "正在启动Celery Worker..."
|
||
celery -A celery_app worker --loglevel=info |