Skip to content

Commit

Permalink
adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
themarcelor committed May 14, 2021
1 parent 809f4dd commit 8917cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fence/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from userdatamodel.driver import SQLAlchemyDriver
from werkzeug.middleware.dispatcher import DispatcherMiddleware

# This MUST be declared before the multiprocess lib is imported/initialized
# to unblock unit testing without having to explicitly declare the env. variable
# More details on this awkwardness: https://github.com/prometheus/client_python/issues/250
tmp_dir = tempfile.TemporaryDirectory()
os.environ["prometheus_multiproc_dir"] = tmp_dir.name

Expand Down

0 comments on commit 8917cb6

Please sign in to comment.