Starting a long process on the server from a WSGI application

I need to start a long process (30 minutes) via http and get the status when it starts. A "process" is basically a Python script that updates a database. I have the following limitations:

  • Only one process instance can work at a time.

  • The WSGI application runs in several interpreters, so I cannot just make the isRunning global variable to track it.

  • I need a web page to track the process (status / progress)

  • No Django, just pure WSGI.

Does anyone have experience doing the same thing?

+3
source share
2 answers

MQ - IPC . -.

+2

Celery (http://celeryproject.org/) - Python.

+1

Source: https://habr.com/ru/post/1790394/


All Articles