cic-internal-integration/apps/cic-eth/cic_eth/check/db.py
2021-04-23 22:39:56 +02:00

9 lines
217 B
Python

from cic_eth.db.models.base import SessionBase
def health(*args, **kwargs):
session = SessionBase.create_session()
session.execute('SELECT count(*) from alembic_version')
session.close()
return True