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 - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -