New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Role of django-celery is unclear #335
Comments
This section of the documentation explains when you need django-celery: http://docs.celeryproject.org/en/master/django/first-steps-with-django.html#using-the-django-orm-cache-as-a-result-backend |
Unfortunately the celery documentation seems to conflict with the django-celery documentation that says:
github describes the project as:
Furthermore, if you attempt to get to the documentation at http://django-celery.readthedocs.org/en/latest/ there is:
The celery documentation doesn't really do anything to cover django-celery. Furthermore it seems to list steps that aren't required (I have never had to manually set CELERY_RESULT_BACKEND), and skips steps that are required (calling djcelery.setup_loader() from settings.py seems to be essential). It doesn't document any of the additional features django-celery provides, e.g. the management command line interface or the db models. I think I found the django-celery documentation somewhere, but it really is not easy to find with all these redirects to the celery project. |
@brianmay if there's docs besides just the ReadMe here, I'd be most grateful. I've spent 3 days trying to get django-celery working. I got a pull request merged (#381) that removed the broken link to django-celery.readthedocs.org but if you think a readthedocs still is out there for django-celery, that link should be referenced even if it's old. Django-Celery is still very useful in theory (if I could get it showing tasks) simply for that fact of recycling awesome code that allows to set schedules of tasks and task reporting. Very awesome. I'm of the camp that it shouldn't be labeled too harshly as "No longer required", maybe "django-celery is a supplemental module giving many nice features to django admin like scheduling of tasks." I setup an example project using celery/examples/django and following all the docs I could find on django-celery but tasks still aren't showing up in django-admin: Posted my issue on Stack Overflow as well: You can work directly in the same Ubuntu environment I am for my django-celery-example project to experiment with why tasks may not be showing up here in Cloud 9
|
@mikeumus Are you running the celery events daemon? You should be running something like What output you get from that? |
@ionelmc, I wasn't running the camera before, just did now though and used |
@mikeumus Well then keep the camera running and report if you're still missing the task data from the djangoadmin. |
@ionelmc, I had the camera running, django and the task separately but nothing showed up. Can try it again. It says the camera is |
You did set the correct app for the events daemon right? ( And you enabled the events in the settings? (http://docs.celeryproject.org/en/latest/configuration.html?highlight=events#celery-send-events) |
@ionelmc I set |
Can you pastebin again output from both daemons? |
You don't seem to be running any tasks in the worker. What did you expect to see in the admin? |
@ionelmc Doesn't this part mean the task is running? or am I misunderstanding it. Should I run it with |
I suspect you don't need multi at all. |
@mikeumus Thought there was something, can't find anything right however. I see that there is old documentation on readthedocs (see menu at bottom right of page), possibly this is what I was thinking of.
Not sure if this is any use. I would assume readthedocs documentation comes from the django-celery git source, so presumably everything should be available there, even if you have search back in the git history. |
@ionelmc @brianmay Got my django-celery example project showing tasks in the django admin with some help from Yusuf from LiveCoding.tv: https://github.com/mikeumus/django-celery-example In it's README, every step one needs to get django-celery running and showing tasks is there. Please provide any feedback and feel free to share the project as much as is helpful. If you'd like we can transfer the repo anywhere as well (after I clean up the README further). |
@mikeumus you could send PR for examples |
See celery/celery#2174
The text was updated successfully, but these errors were encountered: