cic-internal-integration/apps/cic-eth/cic_eth/check/db.py
2021-04-21 23:11:48 +02:00

8 lines
216 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