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

  • SEARCH
  • Home
  • 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 9243601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:50:32+00:00 2026-06-18T08:50:32+00:00

I am using django celery and rabbitmq as my broker (guest rabbit user has

  • 0

I am using django celery and rabbitmq as my broker (guest rabbit user has full access on local machine). I have a bunch of projects all in their own virtualenv but recently needed celery on 2 of them. I have one instance of rabbitmq running

(project1_env)python manage.py celery worker
 normal celery stuff....
[Configuration]
   broker:      amqp://guest@localhost:5672//
   app:         default:0x101bd2250 (djcelery.loaders.DjangoLoader)

[Queues]
   push_queue:  exchange:push_queue(direct) binding:push_queue

In my other project

(project2_env)python manage.py celery worker
 normal celery stuff....
[Configuration]
   broker:      amqp://guest@localhost:5672//
   app:         default:0x101dbf450 (djcelery.loaders.DjangoLoader)

[Queues]
   job_queue:   exchange:job_queue(direct) binding:job_queue

When I run a task in project1 code it fires to the project1 celery just fine in the push_queue. The problem is when I am working in project2 any task tries to fire in the project1 celery even if celery isn’t running on project1.

If I fire back up project1_env and start celery I get

Received unregistered task of type 'update-jobs'.

If I run list_queues in rabbit, it shows all the queues

...
push_queue  0
job_queue   0
...

My env settings and CELERYD_CHDIR and CELERY_CONFIG_MODULE are both blank.

Some things I have tried:

  • purging celery
  • force_reset on rabbitmq
  • rabbitmq virtual hosts as outlined in this answer: Multi Celery projects with same RabbitMQ broker backend process
  • moving django celery setting out and setting CELERY_CONFIG_MODULE to the proper settings
  • setting the CELERYD_CHDIR in both projects to the proper directory

None of these thing have stopped project2 tasks trying to work in project1 celery.

I am on Mac, if that makes a difference or helps.

UPDATE

Setting up different virtual hosts made it all work. I just had it configured wrong.

  • 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-18T08:50:33+00:00Added an answer on June 18, 2026 at 8:50 am

    If you’re going to be using the same RabbitMQ instance for both Celery instances, you’ll want to use virtual hosts. This is what we use and it works. You mention that you’ve tried it, but your broker URLs are both amqp://guest@localhost:5672//, with no virtual host specified. If both Celery instances are connected to the same host and virtual host, they will produce to and consume from the same set of queues.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to add delaying of arbitrary tasks using django-celery . Currently, I have
I am using celery 2.4.1 with python 2.6, the rabbitmq backend, and django. I
I'm using celery and django-celery. I have defined a periodic task that I'd like
I'm using celery with django and rabbitmq to create a message queue. I also
I'm using django-celery using the database as both broker and results store. The events
I'm using celery with django. I'm having to provide an option for the user
I am using Django with Celery + RabbitMQ to create video conversion tasks of
I'm running Celery in a Django app with RabbitMQ as the message broker. However,
I'm trying create a simple background periodic task using Django-Celery-RabbitMQ combination. I installed Django
1) I am trying to build an application using Celery (with RabbitMQ as broker)

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.