GENI-NSF / geni-ch

GENI clearinghouse services
Other
3 stars 6 forks source link

One time initialization can happen multiple times #542

Closed tcmitchell closed 7 years ago

tcmitchell commented 7 years ago

We use a global variable to gate multiple initializations. We're seeing multiple initializations in the log file. Instead of our own gate, leverage WSGI by putting one-time initialization in the .wsgi file, which is loaded once per the documentation. That's the right way to do this according to Graham Dumpleton, the mod_wsgi developer.