python - Share a global variable in flask among multiple gevent workers -


in flask application keep global variable store current states of running tasks, cannot shared different gevent workers.

g used store global data in flask application, g reset after each request.

how can achieve without use of redis or other storage between processes?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -