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
{{ message }}
Repository navigation
Option to block main thread when serving metrics #314
When writing exporters, I usually want the program to run indefinitely once I call start_http_server. Currently, I need to add a workaround using e.g. while True: sleep(100). It would be nicer if there was a block=True or similar kwarg which would hang the main thread instead.
This seems simple enough that I might try add it myself if I get a positive reaction.
Activity
Shtsh commentedon Oct 30, 2018
signal.pause() would be a better solution
https://docs.python.org/3/library/signal.html#signal.pause
brian-brazil commentedon Feb 19, 2019
It's one line of code for the user to add, so I don't see a big need to expand the API.