python - How do I use Google Storage in Flask? -
After
this oauth2_client
which uses it immediately locks Script does not work without these lines What is the correct way to integrate it into a flask app? Do I have to manage these locks? Is it a thing that my web server can generate multiple threads? Or if I'm using Gnicknorn + Gagweet? Is there documentation anywhere?
After
This is actually locking, it is not instantiating just a lock object inside the module . Lock is actually achieved / released internally by the oauth2_client
; You do not have to manage it yourself, you know, you can see the source code from here:
In fact, based on the above link source code, you can simply call oauth2_client.InitializeMultiprocessingVariables Should be enabled for ()
except for leaving / excluding
blocks, since it is finally doing the exact same thing.
Comments
Post a Comment