First time here? Check out the FAQ!
2

What is the default Celery broker?
 

Hi

I see that Celery is used to handle slow tasks, but BROKER_URL doesn't seem to be set in settings.py. Does anyone know what is the default broker? There's a variable called DOMAIN_NAME in settings.py, but what is its purpose? Is it related to Celery?

Thanks

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
kate_r's avatar
107
kate_r
asked 11 years ago

Comments

see more comments

1 Answer

2

This setting is to set up custom message broker (medium to transfer messages between the application and the celery daemon).

For the beginner site it might be best to stick with the default - just change CELERY_ALWAYS_EAGER to False and run in the background:

python manage.py celeryd

The default setup will use database as the message broker. It is not the fastest or most scalable, but this will take you long way and reduce necessity of setting up additional services.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 11 years ago
link

Comments

see more comments