blob: 9b5c7e7dc4fc7beba467510700f1d18dbabcdc53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/python
import sys
sys.path = ["/usr/share/abrt-retrace"] + sys.path
from retrace import *
def application(environ, start_response):
formats = ""
for format in HANDLE_ARCHIVE.keys():
formats += " %s" % format
output = [
"running_tasks %d" % len(get_active_tasks()),
"max_running_tasks %d" % CONFIG["MaxParallelTasks"],
"max_packed_size %d" % CONFIG["MaxPackedSize"],
"max_unpacked_size %d" % CONFIG["MaxUnpackedSize"],
"supported_formats%s" % formats,
]
return response(start_response, "200 OK", "\n".join(output))
|