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

c++ - CPP, 'X' button listener -

Get Max value from table in hibernate -

php - Alamofire request parameters empty -