cic-internal-integration/apps/cic-eth/cic_eth/k8s/db.py
2021-04-21 17:34:13 +00: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