A
A
Artem Sovetnikov2018-11-26 15:49:20
Django
Artem Sovetnikov, 2018-11-26 15:49:20

How to manage constantly running background processes?

There is a task:
1. Keep several processes constantly running, each of which keeps an open network connection to the server and receives messages.
2. Somehow these processes need to be launched and monitored that they are working, restarted if necessary.
3. If necessary, stop or start new processes with parameters.
I can not find anything ready for such a task ...
Celery, etc. solutions about problems do not fit here, because processes must be constantly running.
Or you can somehow simply manage the number of processes in RQ (Redis Queue) or Dramatiq, etc. solutions?
What is needed is some kind of supervisor who monitors the processes.
Dynamically creating Docker containers (for example) looks a bit tricky.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-11-26
@sim3x

systemd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question