Change to only run the cloud watch reporter in the gunicorn_web
This commit is contained in:
parent
99bd16a69c
commit
b89ba61286
5 changed files with 17 additions and 9 deletions
4
web.py
4
web.py
|
@ -1,7 +1,7 @@
|
|||
import logging
|
||||
import logging.config
|
||||
|
||||
from app import app as application
|
||||
from app import app as application, queue_metrics
|
||||
|
||||
from endpoints.api import api_bp
|
||||
from endpoints.web import web
|
||||
|
@ -9,6 +9,8 @@ from endpoints.webhooks import webhooks
|
|||
from endpoints.realtime import realtime
|
||||
from endpoints.callbacks import callback
|
||||
|
||||
# Start the cloudwatch reporting.
|
||||
queue_metrics.run()
|
||||
|
||||
application.register_blueprint(web)
|
||||
application.register_blueprint(callback, url_prefix='/oauth2')
|
||||
|
|
Reference in a new issue