summaryrefslogtreecommitdiffstats
path: root/src/retrace/settings.wsgi
diff options
context:
space:
mode:
Diffstat (limited to 'src/retrace/settings.wsgi')
-rw-r--r--src/retrace/settings.wsgi21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/retrace/settings.wsgi b/src/retrace/settings.wsgi
new file mode 100644
index 00000000..9b5c7e7d
--- /dev/null
+++ b/src/retrace/settings.wsgi
@@ -0,0 +1,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))