In my Flask application I keep a global variable to store the current states of running tasks, but it cannot be shared by different gevent workers.
g
is used to store global data in Flask application, however g
will be reset after each request.
How can I achieve this without use of redis or any other storage between processes?