Summer Nguyen
Summer Nguyen

Reputation: 229

Celery deployment strategy

I have a task that build a task Server and I decide to use Celery. My idea is that :

  1. Build a celery worker Server on Machine 1
  2. A Web cluster consist of some web servers running Django.

There are some task that Django website have to tell celery Server on Machine 1 to work. For example :

When a new user registered , Django code will call the celery worker to send email somehow. I read documents about celery, but I can not find any documents that show me how to call a "send email" task to the Machine 1 and ask Machine 1 to send the email.

any idea ? Thank you very much

Upvotes: 0

Views: 671

Answers (1)

Christian Thieme
Christian Thieme

Reputation: 1124

When you use django and celery together take a look at django-celery,

http://docs.celeryproject.org:8000/en/latest/django/

Upvotes: 1

Related Questions