ASH84

Software Engineer/Developer, co-founder of Payhere. Ex-Banksalad. Intereseted in iteroperability, bootstrap company, writting.

celery + supervisord

created:2016-06-11
updated:2016-06-11
edit

celery 를 데몬방식으로 실행해야할 경우, 몇 가지 방법이 있는데 그 중에 하나가 supervisor 를 이용하는 것이다.

pip install supervisor  

위와 같이 설치하고 나서 현재 celery task 가 있는 프로젝트에서 supervisord.conf 를 만들고, 마지막줄에 celeryd.conf 를 include 를 한다.

$ echo_supervisord_conf > supervisord.conf 
$ vi supervisord.conf

...

[include]
files = celeryd.conf

그리고 celeryd.conf 를 만들고 아래와 같이 작성한다.

그리고 나서 supervisord 로 실행하면 된다.

Reference


#Celery  #supervisord  #daemonize