cic-internal-integration/apps/cic-eth/cic_eth/check/db.py

9 lines
217 B
Python
Raw Normal View History

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