命令执行失败:python manage.py celery worker -c 4 --loglevel=info
命令执行成功:python manage.py celeryd worker -c 4 --loglevel=info
相关命令参数:python manage.py celeryd --help
optional arguments:
-h, --help show this help message and exit
--concurrency CONCURRENCY, -c CONCURRENCY
--pool POOL_CLS, -P POOL_CLS
--purge, --discard
--loglevel LOGLEVEL, -l LOGLEVEL
--hostname HOSTNAME, -n HOSTNAME
--beat, -B
--schedule SCHEDULE_FILENAME, -s SCHEDULE_FILENAME
--scheduler SCHEDULER_CLS
--statedb STATE_DB, -S STATE_DB
--events, -E
--time-limit TASK_TIME_LIMIT
--soft-time-limit TASK_SOFT_TIME_LIMIT
--maxtasksperchild MAX_TASKS_PER_CHILD
--queues QUEUES, -Q QUEUES
--exclude-queues EXCLUDE_QUEUES, -X EXCLUDE_QUEUES
--include INCLUDE, -I INCLUDE
--autoscale AUTOSCALE
--autoreload
--no-execv
--without-gossip
--without-mingle
--without-heartbeat
--heartbeat-interval HEARTBEAT_INTERVAL
-O OPTIMIZATION
--detach, -D
--logfile LOGFILE, -f LOGFILE
--pidfile PIDFILE
--uid UID
--gid GID
--umask UMASK
--executable EXECUTABLE
--broker BROKER, -b BROKER
--workdir WORKING_DIRECTORY
--quiet, -q
--version show program's version number and exit
-v {0,1,2,3}, --verbosity {0,1,2,3}
Verbosity level; 0=minimal output, 1=normal output,
2=verbose output, 3=very verbose output
--settings SETTINGS The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't provided, the
DJANGO_SETTINGS_MODULE environment variable will be
used.
--pythonpath PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
--traceback Raise on CommandError exceptions
--no-color Don't colorize the command output.
--force-color Force colorization of the command output.
网友评论