Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: run_tests.py

Issue 29328211: Issue 3081 - Enable threading for the run_tests.py Flask webserver (Closed)
Patch Set: Created Sept. 21, 2015, 10:19 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: run_tests.py
diff --git a/run_tests.py b/run_tests.py
index f6b286fdd10f50c78266b7c72e824446a7bd4acc..7dac2e466035d238d720443ba61c55101fecde47 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -98,4 +98,8 @@ if __name__ == "__main__":
print >>sys.stderr, e
print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
- app.run(debug=True)
+ # FIXME - See https://github.com/mitsuhiko/werkzeug/pull/770
+ from werkzeug.serving import ThreadedWSGIServer
+ ThreadedWSGIServer.daemon_threads = True
+
+ app.run(debug=True, threaded=True)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld