summaryrefslogtreecommitdiffstats
path: root/api/yardstick.ini
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-01-24 13:12:21 -0800
committerRoss Brattain <ross.b.brattain@intel.com>2017-02-08 00:08:24 -0800
commit96a752b948be4ec94f5fb6d6ce38d81f05c235a7 (patch)
tree7e45d1e5f5141c334a776e6b1c2bfb91908cd8ae /api/yardstick.ini
parenta4241e6e9b121447a50fdfe0d79b322c2e2aaea9 (diff)
uwsgi: move init_db to uwsgi entry point
uwsgi will call the 'callable' function which should normally be Flask.__call__(). But we need to init the db first, so make a wrapper function that inits the db and then calls app() Also refactor add_resource into for loop instead of reduce. reduce is not really approriate here since we aren't consuming the return value JIRA: YARDSTICK-543 Change-Id: I692d6d42de09f7d6ecf1a67a22e3019d97a4f3ca Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'api/yardstick.ini')
-rw-r--r--api/yardstick.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/yardstick.ini b/api/yardstick.ini
index 2ba881fc1..d2e8956e2 100644
--- a/api/yardstick.ini
+++ b/api/yardstick.ini
@@ -9,7 +9,7 @@ threads = 5
async = true
max-requests = 5000
chmod-socket = 666
-callable = app
+callable = app_wrapper
enable-threads = true
close-on-exec = 1
daemonize= /var/log/yardstick/uwsgi.log