Is there a supervisor for python 3?

11,673

supervisord is just process manager, fact that itself uses python2 does not mean it can't run python3 application.

Just put your application in virtualenv created with python3.

$ virtualenv -p python3 myvenv

Activate that environment and install your app into it with celery as well. And in supervisor you will use full path to celery from inside that virtualenv.

e.g. I created my python3 virtualenv in /home/beezz/myvenv then celery will be located at /home/beezz/myenv/bin/celery

And here is virtualenv's documentation. In general it's good practice to keep applications in separate virtual environments.

If you are not tied to supervisord somehow, circus is also nice process manager with some cool features and it's python3 ready.

Share:
11,673

Related videos on Youtube

PiccolMan
Author by

PiccolMan

Updated on September 15, 2022

Comments