cic-internal-integration/apps/cic-eth/cic_eth/k8s/db.py
2021-04-19 15:59:13 +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