0
我試圖在芹菜中守護我的任務,我已經測試了沒有守護進程並且工作得很好。芹菜不執行我的工人
但我不能像守護進程教程說(http://docs.celeryproject.org/en/latest/tutorials/daemonizing.html#daemonizing) 我有我的文件:
solr_desa.py
celeryconfig.py
from celery.schedules import crontab
BROKER_URL = '127.0.0.1'
BROKER_PORT = 5673
CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6969/0'
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'America/Santiago'
CELERY_IMPORTS = ('solr_desa',)
CELERYBEAT_SCHEDULE = {
'solr_schedule': {
'task': 'doSomething',
'schedule': crontab(minute=9, hour=12)
},
}
還有 的/ etc /默認/ celeryd
CELERY_NODES="w1"
CELERYD_CHDIR="/opt/latam/script/solr"
CELERYD_OPTS="--time-limit=300 --concurrency=8"
CELERY_CONFIG_MODULE="celeryconfig"
CELERYD_LOG_FILE="/var/log/celery/%n.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"
我執行與在https://github.com/celery/celery/blob/3.0/extra/generic-init.d/celeryd默認celeryd,但任務是剛剛入隊,但它看起來像有沒有工人:(
哪裏是我的錯,我組態? :(