Skip to content
Advertisement

Django – Celery 4.1 with django-celery-beat/rabbitmq : Nothing?

I followed the tutorial on http://docs.celeryproject.org/en/latest/ and I am on virtualbox (Xubuntu 16.XX TLS), Django 1.11.3, Celery 4.1 . rabbitmq 3.6.14, Python 2.7 .

and when I started the daemonization with the init-script: celerybeat (with /etc/default/celeryd config file)

[2017-11-19 01:13:00,912: INFO/MainProcess] beat: Starting…

and nothing more after. Do you see what could I make wrong ?

My celery.py:

JavaScript

some_app/tasks.py:

JavaScript

/etc/default/celeryd:

JavaScript

My setup of rabbitmq :

JavaScript

The commands I run to start (and their messages) :

JavaScript

Warning: PID file not written; -detached was passed.
/etc/init.d/celerybeat: lerybeat: not found
celery init v10.1.
Using configuration: /etc/default/celeryd
Starting celerybeat…

JavaScript

Performing system checks…

System check identified no issues (0 silenced).
November 19, 2017 -01:49:22 Django version 1.11.3, using settings ‘oscar.settings’
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Thanks for your answer

Advertisement

Answer

It looks like you’ve started a celerybeat process and your server, but haven’t started a celery worker process.

JavaScript

(where proj is the name of your project).

Note that you can start a celery worker with an embedded beat process rather than needing to run celerybeat separately.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement