Confusion between celery and celeryd

I have successfully installed celery and django celery in my django app. I have followed a number of tutorials in an effort to understand it. Some start the worker with celery like so:

python manage.py celery worker --loglevel=info

others start it with celery d :

python manage.py celeryd –-verbosity=2 –loglevel=DEBUG

I have 2 questions please:

  • Which one should I be using?
  • The celeryd command is not working (see exception below). How can i fix it?

    File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/Users/juankruger/.virtualenvs/pony/lib/python2.7/site-packages/django/core/management/ init .py", line 385, in execute_from_command_line utility.execute() File "/Users/juankruger/.virtualenvs/pony/lib/python2.7/site-packages/django/core/management/ init .py", line 377, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/juankruger/.virtualenvs/pony/lib/python2.7/site-packages/djcelery/management/base.py", line 81, in run_from_argv self.handle_default_options(argv[2:]) File "/Users/juankruger/.virtualenvs/pony/lib/python2.7/site-packages/djcelery/management/base.py", line 91, in handle_default_options if '--settings=' in arg: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128)


  • celerydcelery worker的旧版本。你可以同时使用这两种。但是最好是最新的。然后在你的语法中出现错误。试试这个

    python manage.py celeryd --verbosity=2 --loglevel=DEBUG
    
    链接地址: http://www.djcxy.com/p/54772.html

    上一篇: 将.txt用于列表中

    下一篇: 芹菜和芹菜混淆