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 -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -