-
Notifications
You must be signed in to change notification settings - Fork 8
2. Advanced Configuration
Additional configuration options are available for Judge. They are found in the config.py
file:
DEBUG = False
ALLOW_CONFIG = True
POLL_TIMEOUT = 5
SERVICES_FILE = 'services.yaml'
# These values are overriden by defining them again in instance/config.py
SECRET_KEY = 'supersecretkey'
DEBUG
: The DEBUG
value sets Flask's debug mode. Learn more here.
ALLOW_CONFIG
: The ALLOW_CONFIG
option sets whether post-launch configuration of Judge is allowed. This should be set to False if being used in production.
POLL_TIMEOUT
: The POLL_TIMEOUT
value sets the amount of time that Judge waits for any particular service to complete before deciding that the service must be down. Increasing this value slows down Judge, but decreases false negatives. Decreasing this values speeds up Judge, but increases false negatives.
SERVICES_FILE
: The SERVICES_FILE
value sets the file that Judge reads for pre-launch configuration of services. By default this is services.yaml
. This can be changed to allow you to have multiple configuration files for different competition sets, and switch between them easily.
SECRET_KEY
: The SECRET_KEY
value sets Flask's secret key. This should be overriden in instance/config.py
if being used in production.