原来命令行里有提示,保证用-n给与不同的名字即可。
比如:
[program:celeryd]
command=/usr/local/python27/bin/celery worker --app=settings -c 4 -l info -n celeryd
[program:celerybeat]
command=/usr/local/python27/bin/celery worker --app=settings -c 4 --beat -n celerybeat
[2015-12-10 15:43:34,199: INFO/MainProcess] Connected to redis://127.0.0.1:6379/0 [2015-12-10 15:43:34,211: INFO/MainProcess] mingle: searching for neighbors [2015-12-10 15:43:35,225: WARNING/MainProcess] /usr/local/python27/lib/python2.7/site-packages/celery-3.1.19-py2.7.egg/celery/app/control.py:36: DuplicateNodenameWarning: Received multiple replies from node name: 'name'. Please make sure you give each node a unique nodename using the `-n` option. pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)),
时间: 2024-09-10 15:04:29