You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #165 once running behind a multi process / threaded server the global variables won't be safe for cached data like the users and destinations variables. It may be that this works ok in multi process context but i assume the users store changes will fail in a threaded environment.
This cached data should be stored in external cache system (a hosted memcache/redis instance) instead of global vars.
The same can be said for the panoptes client for re-use vs setting it up over and over again, though the client may be smart enough to avoid running the login code multiple times.
The text was updated successfully, but these errors were encountered:
aggregation-for-caesar/panoptes_aggregation/panoptes/userify.py
Line 69 in b6b7ee4
Related to #165 once running behind a multi process / threaded server the global variables won't be safe for cached data like the users and destinations variables. It may be that this works ok in multi process context but i assume the users store changes will fail in a threaded environment.
https://stackoverflow.com/questions/32815451/are-global-variables-thread-safe-in-flask-how-do-i-share-data-between-requests
This cached data should be stored in external cache system (a hosted memcache/redis instance) instead of global vars.
The same can be said for the panoptes client for re-use vs setting it up over and over again, though the client may be smart enough to avoid running the login code multiple times.
The text was updated successfully, but these errors were encountered: