cic-stack/apps/cic-eth/cic_eth/k8s/db.py

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