tornado: Ensure TORNADO_PROCESSES is an integer.

When reading something from get_config, the default return type is a
string, which mean that various comparisons didn't work correctly.
This commit is contained in:
Tim Abbott 2018-11-06 13:08:28 -08:00
parent 1bf385e35f
commit 86b38b1de7
1 changed files with 1 additions and 1 deletions

View File

@ -589,7 +589,7 @@ CORPORATE_ENABLED = 'corporate' in INSTALLED_APPS
# Base URL of the Tornado server
# We set it to None when running backend tests or populate_db.
# We override the port number when running frontend tests.
TORNADO_PROCESSES = get_config('application_server', 'tornado_processes', 1)
TORNADO_PROCESSES = int(get_config('application_server', 'tornado_processes', 1))
TORNADO_SERVER = 'http://127.0.0.1:9993'
RUNNING_INSIDE_TORNADO = False
AUTORELOAD = DEBUG