Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8046443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:47:15+00:00 2026-06-05T05:47:15+00:00

Ok, I got everything installed properly to get celery + redis in django I

  • 0

Ok, I got everything installed properly to get celery + redis in django

I got

INSTALLED_APPS = (
    'djcelery',
    'kombu.transport.django',
)

These are in my settings

CELERY_REDIS_HOST = 'localhost'
CELERY_REDIS_PORT = 8889
CELERY_REDIS_DB = 0
CELERY_RESULT_BACKEND = 'redis'

BROKER_URL = "redis://localhost:8889/0"

REDIS_CONNECT_RETRY = True
CELERY_IGNORE_RESULT = True
CELERY_SEND_EVENTS = True
CELERY_TASK_RESULT_EXPIRES = 60
CELERYBEAT_SCHEDULER= 'djcelery.schedulers.DatabaseScheduler'

I got redis working with

./redis-server

It outputs to the terminal every second or so
I can also run

./manage.py celeryd -E -B --loglevel=INFO -n w1.d820

Without errors
I can even see my tasks being added and successfully finished with

./manage celeryev

So even thought it gets logged by celeryev this code doesnt work:

from celery.task import task
@task
def add(x, y):
    return x + y

res = add.apply_async(args=[1,5])
print res.wait()

It just hangs without ever returning the result, I can see its actually trying to get it from redis because if I do

./redis-cli
MONITOR

I get lots of GETs trying to get an non existance key
So my conclusion is that django is not saving to the backend
Whats wrong with my settings? I think Iam missing something obvious and I can’t see it because I’ve been too long fighting this. Help

Btw I can’t use the standard port 6379 because I am on a shared server.

UPDATE using these

celery==2.5.3
django-celery==2.5.5
django-celery-with-redis==2.5
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:47:17+00:00Added an answer on June 5, 2026 at 5:47 am

    In ubuntu 10.10 when you install redis it automatically starts at boot, and it was conflicting with celery because apparently even if you tell it to use this or that port if celery can connect to redis in 6379 port it will use it as a backend. I’ve not seen the code but is my conclusion.
    So i closed all the redis instances ran my own with my redis.conf on whatever port i want and then i put these on my settings.

    BROKER_URL = 'redis://localhost:8889/0'
    REDIS_DB = 0
    REDIS_CONNECT_RETRY = True
    CELERY_RESULT_BACKEND = 'redis'
    CELERY_REDIS_PORT = 8889
    BROKER_PORT = 8889
    CELERY_RESULT_PORT = 8889
    CELERY_TASK_RESULT_EXPIRES = 10
    CELERYBEAT_SCHEDULER= 'djcelery.schedulers.DatabaseScheduler'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed gvim on windows vista and got really excited to edit EVERYTHING with
I'm following the Django-CMS introductory tutorial and have got everything working up to the
I got this after installing the tagging application. I've installed it via settings.py as
I'm brand new to JAva/Eclipse/Android but gearing up! I've got everything installed and working
I've got everything setup and working for MQTT now. I am using the IBM
Boy, I've got everything down-pat save the word referencing. The game crashes because of
I got following code from net and it looks everything is proper but i'm
I've got a view in my app that does pretty much everything, and I
I just recently got around to converting an old svn project to git. Everything
I've got a Visual Studio 2010 C++ project. Previously everything was working fine but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.