Run
run()
Entrypoint of the application.
Source code in hestia/run.py
34 35 36 37 38 39 40 41 42 43 44 45 |
|
set_multiproc_dir()
Sets mutiproc_dir env variable.
This function cleans up the multiprocess directory and recreates it. This actions are required by prometheus-client to share metrics between processes.
After cleanup, it sets two variables. Uppercase and lowercase because different versions of the prometheus-client library depend on different environment variables, so I've decided to export all needed variables, to avoid undefined behaviour.
Source code in hestia/run.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|