python - Celery multi with queues set up not receiving tasks from django -


I am running my workers with the following command:

Celery- One map Multi-start 4-D debug -Q1: 3 qi1, qi2-q: 4 qi3

When I run the workers start very well < Blockquote>

active inspection of celery

  result = series ( 

Task1 .s (** kwargs) .set (queue = 'queue1'), task2.s (** kwargs) .set (queue = 'queue2')) ()

i results The result of shift as a result Get all the work IDs to be done and record them in the database for further investigation. When I release

  task = asyncResult (task.id) task.status   

I get 'pending' for each job, I Starting with the series. Celery logs are not receiving any functions. However, when I issue a yes

  celery item   

>

I get a message that asyncrasult on my works actually removed from 1 queue. Has been removed from the station, which is shown as 'Pending' and the functions are never started. I use rabbitmq-server as the default configuration for my celestial config and it is really weird But in the other environment, the same code and commands present other results: workers also start but they get very much work and they have no problem Area is performed. Please think what could be a problem here.

ps When I start a worker in another way:

  Celery - A map worker - Q Qi1, Qi2, Qi3-D debug   

I still have to modify my chain when I started my execution of work and problem

  .set (queue = 'queue1')   

or queue2 or qi3

pps:

All my actions

  @shared_task  < / Pre> 

Decorator P>

Is there at least one way to see that Nothing works (which I can remove by celery pure) are waiting on one line and waiting for queue name?

The celerary default settings should cover your case, so only one thing is that you have Consider some of the options in a manner that is mousing your queue, and consider commenting in this case ():

  • CELERY_QUEUES

  • CELERY_ROUTES

  • CELERY_DEFAULT_EXCHANGE

  • CELERY_DEFAULT_ROUTING_KEY

  • CELERY_DEFAULT_ROUTING_KEY

    For your question, I think it is not that it is the complete answer, but you can do list of all active queues from RabbitMQ.

    Using the cellar:

      Celery - A project active inspection   

    using RabbitMQ:

      rabbitmqadmin list queues vhost name node message message_stats.publish_details.rate    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -