Rabbitmq celeryd celerybeat doesn't perform production tasks like Daemon

Last week I installed RabbitMQ and Celery on my production system after I tested it with my local developer and everything worked fine.

I get the feeling that my tasks are not being performed at the factory, since I have about 1,200 tasks that are still in the queue.

I start the installation of CentOS 5.4, with celerydboth celerybeatdaemons and WSGI. I made an import to the wsgi module.

When I run, /etc/init.d/celeryd startwe get the following answer

[root@myvm myproject]# /etc/init.d/celeryd start
celeryd-multi v2.3.1
> Starting nodes...
    > w1.myvm.centos01: OK

When I run /etc/init.d/celerybeat start, I get the following response

[root@myvm fundedmyprojectbyme]# /etc/init.d/celerybeat start
Starting celerybeat...

Thus, by the result, it seems that the elements are being executed successfully - although when viewing the queues they seem to be larger than they are being executed.

, , django manage.py ./manage.py celeryd ./manage.py celerybeat, .

/etc/default/celeryd

# Where to chdir at start.
CELERYD_CHDIR="/www/myproject/"

# How to call "manage.py celeryd_multi"
CELERYD_MULTI="$CELERYD_CHDIR/manage.py celeryd_multi"

# Extra arguments to celeryd
CELERYD_OPTS="--time-limit=300 --concurrency=8"

# Name of the celery config module.
CELERY_CONFIG_MODULE="celeryconfig"

# %n will be replaced with the nodename.
CELERYD_LOG_FILE="/var/log/celery/%n.log"
CELERYD_PID_FILE="/var/run/celery/%n.pid"

# Workers should run as an unprivileged user.
CELERYD_USER="celery"
CELERYD_GROUP="celery"

# Name of the projects settings module.
export DJANGO_SETTINGS_MODULE="settings"

my /etc/default/celerybeat

# Where the Django project is.
CELERYD_CHDIR="/www/myproject/"

# Name of the projects settings module.
export DJANGO_SETTINGS_MODULE="settings"

# Path to celeryd
CELERYD="/www/myproject/manage.py celeryd"

# Path to celerybeat
CELERYBEAT="/www/myproject/manage.py celerybeat"

# Extra arguments to celerybeat
CELERYBEAT_OPTS="--schedule=/var/run/celerybeat-schedule"

/etc/init.d /celeryd /celerybeat

???

+5
2

, "python" CELERYD_MULTI.

# How to call "manage.py celeryd_multi"
CELERYD_MULTI="python $CELERYD_CHDIR/manage.py celeryd_multi"

- manage.py script ( chmod + x shebang.) , , .

+1

, :

sh -x /etc/init.d/celeryd start 

/var/log ,

0

All Articles