supervisord for python 3?

PythonPython 3.xSupervisord

Python Problem Overview


Want to use supervisord to control the processes for my Python 3 project. It is specifically stated that "Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3".

Any suggestions for supervisor replacement for Python 3?

Python Solutions


Solution 1 - Python

The upcoming 4.0 release of Supervisord will support Python 2.7, and 3.4 and up. Until then, you could use the supervisor-py3k fork.

Or simply run supervisord with Python 2; your Python 3 codebase is otherwise unaffected, as supervisord is an independent process.

Solution 2 - Python

To use supervisord with Python 3 you can setup it directly with pip:

pip install git+https://github.com/Supervisor/supervisor

Solution 3 - Python

Python 3 support for supervisord is still experimental and as mentioned in documentation, you shouldn't use it in production.

Mozilla Foundation has developed a package called circus which works on Python 3.

It manages process with circusd and it also has circusctl, circus-top, circus-web(similar to supervisor).

You can use your supervisor conf file with circus with some changes. It also has a seperate section in docs for users coming from supervisor. You can read that for more details.

Update: Latest master has python 3 support. You can install it with

pip install git+https://github.com/Supervisor/supervisor

Solution 4 - Python

Master branch of Supervisor already supports Python3. It's a development version, so please notify any bug you find.

Solution 5 - Python

supervisor 4+ supports Python3, It's available in PyPI so you can simply do pip install supervisor to install it.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser2777473View Question on Stackoverflow
Solution 1 - PythonMartijn PietersView Answer on Stackoverflow
Solution 2 - PythonVasili PascalView Answer on Stackoverflow
Solution 3 - PythonPandikunta Anand ReddyView Answer on Stackoverflow
Solution 4 - PythonAdrian LopezView Answer on Stackoverflow
Solution 5 - Pythonatb00kerView Answer on Stackoverflow