Removed db stuffs
This commit is contained in:
@@ -7,11 +7,10 @@ from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
|
||||
from healthcheck import HealthCheck
|
||||
|
||||
from config import Config
|
||||
from db import db
|
||||
from marshm import ma
|
||||
from influxus import influx_db
|
||||
from resources import SampleResource, SampleParameterResource
|
||||
from healthchecks import health_database_status, amqp_connection_status
|
||||
from healthchecks import amqp_connection_status
|
||||
|
||||
import atexit
|
||||
|
||||
@@ -48,7 +47,6 @@ app.config.from_object(Config)
|
||||
|
||||
api = Api(app)
|
||||
health = HealthCheck()
|
||||
db.init_app(app)
|
||||
ma.init_app(app)
|
||||
|
||||
# ampq magic stuff
|
||||
@@ -68,7 +66,6 @@ if Config.ENABLE_INFLUXDB:
|
||||
def init_db():
|
||||
if Config.ENABLE_INFLUXDB:
|
||||
influx_db.database.create(Config.INFLUXDB_DATABASE)
|
||||
db.create_all()
|
||||
|
||||
# Setup tracing
|
||||
def initialize_tracer():
|
||||
@@ -83,7 +80,6 @@ tracing = FlaskTracing(initialize_tracer, True, app)
|
||||
api.add_resource(SampleResource, "/input")
|
||||
api.add_resource(SampleParameterResource, '/input/<tag>')
|
||||
|
||||
health.add_check(health_database_status)
|
||||
health.add_check(amqp_connection_status)
|
||||
|
||||
register_all_error_handlers(app)
|
||||
|
||||
Reference in New Issue
Block a user