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

8 lines
201 B
Python
Raw Normal View History

2021-04-19 12:46:23 +02:00
from cic_eth.db.models.base import SessionBase
def health():
session = SessionBase.create_session()
session.execute('SELECT count(*) from alembic_version')
session.close()
return True