blob: 9c906c4971dbe00e5cfb56512694ad2b8f6cad1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/python
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))
|