Celery+gunicorn+supervisor


#1

How to use?
like:
rccontrol start celeryd-instance-id

This is possibly?


#2

I install celery like old version(use paster instead of gunicorn).
like in this manual:
/https://gist.github.com/jennings/2866413
how to configure celery+gunicorn+supervisor?


#3

Adding such section into in .rccontrol/supervisor/supervisord.ini .
We will add a comment on that into the config.

[program:rhodecode_celery]
numprocs = 1
priority = 10
directory = /home/<user>/.rccontrol/enterprise-1
command = /home/<user>/.rccontrol/enterprise-1/profile/bin/paster celeryd /home/<user>/.rccontrol/enterprise-1/rhodecode.ini -l debug
redirect_stderr = true
stdout_logfile = /home/<ubuntu>/.rccontrol/enterprise-1/celery.log

#4

Hi Marcin,

I added this section to my supervisord.ini and it seems to work.
But: this section always disappears when running “rccontrol self-init” from my service startup script or manual (by hand).

What can I do?


#5

Yes this seems to be a problem :frowning: we’re release within few days a fix to rccontrol and it would leaverage the [include] statment with supervisord. So it will include any other files with .ini and allow to extend the configuration


#6

Here we go, new in 1.6.4 release of rccontrol: https://docs.rhodecode.com/RhodeCode-Control/tasks/supervisor.html#using-include-statement-to-extend-the-programs

Simply add the include and create the celery file as in example. This should be persistent now.

Cheers


#7

Thanks Marcin,

this works for me now.