nodebookls/start_celery.sh
2025-10-29 13:56:24 +08:00

16 lines
322 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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